aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar william <william@25tandclement.com> 2014-07-15 21:14:51 -0700
committerLibravatarLibravatar william <william@25tandclement.com> 2014-07-15 21:14:51 -0700
commit33015a94acba6a072bcbb17e25b5ae4c954923b7 (patch)
tree2df98398bc3fb42f9b707218e12f8030f0c4cda7
parenta5b46c650b477cdc673bc52a58a39232460f29fc (diff)
downloadluaossl-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
-rwxr-xr-xexamples/self.x5094
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)
crt:setPublicKey(key)
crt:sign(key)
--- pretty-print using openssl command-line utility.
-io.popen("openssl x509 -text -noout", "w"):write(tostring(crt))
-
+print(crt:text())