aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-01-09 16:58:39 +0100
committerKim Alvefur <zash@zash.se>2016-01-09 16:58:39 +0100
commit03859deec951c8dad6519db29ff77c00bcebdbce (patch)
treee190d805e800f2b565af0584b81e80e9b3c21815
parent1503fd92e68b43f5144c6a3d608b46978d320529 (diff)
downloadprosody-03859deec951c8dad6519db29ff77c00bcebdbce.tar.gz
prosody-03859deec951c8dad6519db29ff77c00bcebdbce.zip
prosodyctl: Show an example ssl config after generating a certificate
-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