Comparison

prosodyctl @ 8105:851b50401a26

prosodyctl: Remove example showing deprecated config option
author Kim Alvefur <zash@zash.se>
date Fri, 21 Apr 2017 13:29:04 +0200
parent 8104:4e5a8365c53f
child 8106:86ec9045d095
comparison
equal deleted inserted replaced
8104:4e5a8365c53f 8105:851b50401a26
816 if key_filename and conf_filename and cert_filename 816 if key_filename and conf_filename and cert_filename
817 and openssl.req{new=true, x509=true, nodes=true, key=key_filename, 817 and openssl.req{new=true, x509=true, nodes=true, key=key_filename,
818 days=365, sha256=true, utf8=true, config=conf_filename, out=cert_filename} then 818 days=365, sha256=true, utf8=true, config=conf_filename, out=cert_filename} then
819 show_message("Certificate written to ".. cert_filename); 819 show_message("Certificate written to ".. cert_filename);
820 print(); 820 print();
821 show_message(("Example config:\n\nssl = {\n\tcertificate = %q;\n\tkey = %q;\n}"):format(cert_filename, key_filename));
822 else 821 else
823 show_message("There was a problem, see OpenSSL output"); 822 show_message("There was a problem, see OpenSSL output");
824 end 823 end
825 else 824 else
826 show_usage("cert generate HOSTNAME [HOSTNAME+]", "Generates a self-signed certificate for the current hostname(s)") 825 show_usage("cert generate HOSTNAME [HOSTNAME+]", "Generates a self-signed certificate for the current hostname(s)")