From 33015a94acba6a072bcbb17e25b5ae4c954923b7 Mon Sep 17 00:00:00 2001 From: william Date: Tue, 15 Jul 2014 21:14:51 -0700 Subject: 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 --- examples/self.x509 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'examples') 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()) -- cgit v1.2.3-59-g8ed1b