diff options
author | william <william@25tandclement.com> | 2014-07-15 21:14:51 -0700 |
---|---|---|
committer | william <william@25tandclement.com> | 2014-07-15 21:14:51 -0700 |
commit | 33015a94acba6a072bcbb17e25b5ae4c954923b7 (patch) | |
tree | 2df98398bc3fb42f9b707218e12f8030f0c4cda7 /examples | |
parent | a5b46c650b477cdc673bc52a58a39232460f29fc (diff) | |
download | luaossl-33015a94acba6a072bcbb17e25b5ae4c954923b7.tar.gz luaossl-33015a94acba6a072bcbb17e25b5ae4c954923b7.tar.bz2 luaossl-33015a94acba6a072bcbb17e25b5ae4c954923b7.zip |
in self.x509 example script use new :text method added by kunkku rather than shelling out to openssl command-line utility to pretty-print a certificate
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/self.x509 | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/self.x509 b/examples/self.x509 index 31d6058..b2d14f9 100755 --- a/examples/self.x509 +++ b/examples/self.x509 | |||
@@ -49,6 +49,4 @@ crt:setBasicConstraintsCritical(true) | |||
49 | crt:setPublicKey(key) | 49 | crt:setPublicKey(key) |
50 | crt:sign(key) | 50 | crt:sign(key) |
51 | 51 | ||
52 | -- pretty-print using openssl command-line utility. | 52 | print(crt:text()) |
53 | io.popen("openssl x509 -text -noout", "w"):write(tostring(crt)) | ||
54 | |||