Changeset

7065:4fc3c008976f

prosodyctl: Show an example ssl config after generating a certificate
author Kim Alvefur <zash@zash.se>
date Sat, 09 Jan 2016 16:58:39 +0100
parents 7064:b98006bfd97a
children 7066:7d5a1fb9bf9e
files prosodyctl
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/prosodyctl	Sat Jan 09 15:18:46 2016 +0100
+++ b/prosodyctl	Sat Jan 09 16:58:39 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