diff options
author | william <william@25tandclement.com> | 2014-03-27 23:02:32 -0700 |
---|---|---|
committer | william <william@25tandclement.com> | 2014-03-27 23:02:32 -0700 |
commit | f6a21f8cd2bc3325a81d85ff58611db000a1f491 (patch) | |
tree | 22fef841067bc26a97b7b7064a6d8ccb94970bdd /examples/self.x509 | |
parent | 47532cac8cdd5d697a56445e5946703de13b19d8 (diff) | |
download | luaossl-f6a21f8cd2bc3325a81d85ff58611db000a1f491.tar.gz luaossl-f6a21f8cd2bc3325a81d85ff58611db000a1f491.tar.bz2 luaossl-f6a21f8cd2bc3325a81d85ff58611db000a1f491.zip |
fixup examples/ for pubkey -> pkey changes
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 @@ | |||
7 | -- CSR generation. | 7 | -- CSR generation. |
8 | -- | 8 | -- |
9 | 9 | ||
10 | local pubkey = require"openssl.pubkey" | 10 | local pkey = require"openssl.pkey" |
11 | local x509 = require"openssl.x509" | 11 | local x509 = require"openssl.x509" |
12 | local name = require"openssl.x509.name" | 12 | local name = require"openssl.x509.name" |
13 | local altname = require"openssl.x509.altname" | 13 | local altname = require"openssl.x509.altname" |
14 | 14 | ||
15 | -- generate our public/private key pair | 15 | -- generate our public/private key pair |
16 | --local key = pubkey.new{ type = "RSA", bits = 1024 } | 16 | --local key = pkey.new{ type = "RSA", bits = 1024 } |
17 | --local key = pubkey.new{ type = "DSA", bits = 1024 } | 17 | --local key = pkey.new{ type = "DSA", bits = 1024 } |
18 | local key = pubkey.new{ type = "EC", curve = "prime192v1" } | 18 | local key = pkey.new{ type = "EC", curve = "prime192v1" } |
19 | 19 | ||
20 | -- our Subject and Issuer DN (self-signed, so same) | 20 | -- our Subject and Issuer DN (self-signed, so same) |
21 | local dn = name.new() | 21 | local dn = name.new() |