prosodyctl: Use ssl.loadcertificate instead of ssl.x509.load, as the ssl.x509 export dissapears in 97b1974 or 356e03a
authorKim Alvefur <zash@zash.se>
Thu, 02 Apr 2015 14:31:41 +0200
changeset 6615 6cc48b51d699
parent 6614 65dd3770bcb0
child 6616 2aae36312eb9
prosodyctl: Use ssl.loadcertificate instead of ssl.x509.load, as the ssl.x509 export dissapears in 97b1974 or 356e03a
prosodyctl
--- a/prosodyctl	Wed Apr 01 13:30:31 2015 -0700
+++ b/prosodyctl	Thu Apr 02 14:31:41 2015 +0200
@@ -1094,7 +1094,7 @@
 		local x509_verify_identity = require"util.x509".verify_identity;
 		local ssl = dependencies.softreq"ssl";
 		-- local datetime_parse = require"util.datetime".parse_x509;
-		local load_cert = ssl and ssl.x509 and ssl.x509.load;
+		local load_cert = ssl and ssl.loadcertificate;
 		-- or ssl.cert_from_pem
 		if not ssl then
 			print("LuaSec not available, can't perform certificate checks")