diff options
author | Kim Alvefur <zash@zash.se> | 2016-01-09 16:58:39 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-01-09 16:58:39 +0100 |
commit | fd5d8d5b29932bd63ced20888f84c5382900776f (patch) | |
tree | e190d805e800f2b565af0584b81e80e9b3c21815 /prosodyctl | |
parent | 986e6171b3cea117a86fa544b1cdbb750539437f (diff) | |
download | prosody-fd5d8d5b29932bd63ced20888f84c5382900776f.tar.gz prosody-fd5d8d5b29932bd63ced20888f84c5382900776f.zip |
prosodyctl: Show an example ssl config after generating a certificate
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |