Diff

prosodyctl @ 7074:3ff83773ffc0

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Sun, 10 Jan 2016 03:57:17 +0100
parent 7065:4fc3c008976f
child 7080:6946c3d5645f
line wrap: on
line diff
--- a/prosodyctl	Fri Jan 08 16:21:05 2016 +0100
+++ b/prosodyctl	Sun Jan 10 03:57:17 2016 +0100
@@ -792,6 +792,8 @@
 			and openssl.req{new=true, x509=true, nodes=true, key=key_filename,
 				days=365, sha256=true, utf8=true, config=conf_filename, out=cert_filename} then
 			show_message("Certificate written to ".. cert_filename);
+			print();
+			show_message(("Example config:\n\nssl = {\n\tcertificate = %q;\n\tkey = %q;\n}"):format(cert_filename, key_filename));
 		else
 			show_message("There was a problem, see OpenSSL output");
 		end