aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-01-10 03:57:17 +0100
committerKim Alvefur <zash@zash.se>2016-01-10 03:57:17 +0100
commit0f30c79999e4572c62f8f5bdfd29771b746db8d3 (patch)
tree64202f4daef595ff51640c1810fbb2751775faa4 /prosodyctl
parentfb972a1ea95f574ecacd7a213a04c4cab5e41f56 (diff)
parent596cd6813cca26de9864a92650b04aa90d4af3c3 (diff)
downloadprosody-0f30c79999e4572c62f8f5bdfd29771b746db8d3.tar.gz
prosody-0f30c79999e4572c62f8f5bdfd29771b746db8d3.zip
Merge 0.10->trunk
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl2
1 files changed, 2 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index e4ef45ad..0c80aca7 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -792,6 +792,8 @@ function cert_commands.generate(arg)
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