diff options
author | Kim Alvefur <zash@zash.se> | 2014-09-11 00:10:29 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-09-11 00:10:29 +0200 |
commit | 4e151b5a8131321f79f8f1ac0fdc1364c448be08 (patch) | |
tree | 138fc63bcb7d481e4094542f400b6ee13b4c2772 /prosodyctl | |
parent | 7001d9fe0986a0287d4856f0085daf7d63415e5f (diff) | |
download | prosody-4e151b5a8131321f79f8f1ac0fdc1364c448be08.tar.gz prosody-4e151b5a8131321f79f8f1ac0fdc1364c448be08.zip |
prosodyctl: Use sha256 for certificate requests and self-signed certificates
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -736,7 +736,7 @@ function cert_commands.request(arg) end local _, key_filename = cert_commands.key({arg[1]}); local _, conf_filename = cert_commands.config(arg); - if openssl.req{new=true, key=key_filename, utf8=true, config=conf_filename, out=req_filename} then + if openssl.req{new=true, key=key_filename, utf8=true, sha256=true, config=conf_filename, out=req_filename} then show_message("Certificate request written to ".. req_filename); else show_message("There was a problem, see OpenSSL output"); @@ -757,7 +757,7 @@ function cert_commands.generate(arg) local ret; if key_filename and conf_filename and cert_filename and openssl.req{new=true, x509=true, nodes=true, key=key_filename, - days=365, sha1=true, utf8=true, config=conf_filename, out=cert_filename} then + days=365, sha256=true, utf8=true, config=conf_filename, out=cert_filename} then show_message("Certificate written to ".. cert_filename); else show_message("There was a problem, see OpenSSL output"); |