diff options
Diffstat (limited to 'examples/self.x509')
-rwxr-xr-x | examples/self.x509 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/self.x509 b/examples/self.x509 index 39525d0..31d6058 100755 --- a/examples/self.x509 +++ b/examples/self.x509 @@ -7,15 +7,15 @@ -- CSR generation. -- -local pubkey = require"openssl.pubkey" +local pkey = require"openssl.pkey" local x509 = require"openssl.x509" local name = require"openssl.x509.name" local altname = require"openssl.x509.altname" -- generate our public/private key pair ---local key = pubkey.new{ type = "RSA", bits = 1024 } ---local key = pubkey.new{ type = "DSA", bits = 1024 } -local key = pubkey.new{ type = "EC", curve = "prime192v1" } +--local key = pkey.new{ type = "RSA", bits = 1024 } +--local key = pkey.new{ type = "DSA", bits = 1024 } +local key = pkey.new{ type = "EC", curve = "prime192v1" } -- our Subject and Issuer DN (self-signed, so same) local dn = name.new() |