X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=prosodyctl;h=df8c8e755312df4b20ba4869cdba6a1a8a0aadbe;hb=289498a056350129cacfe32d84feebcf1f61f816;hp=910b96bf2cb8f82f7874a0a6ab58985bced007fa;hpb=ab718027e48561e55f69ae2551c07e6e277a6e6a;p=prosody.git diff --git a/prosodyctl b/prosodyctl index 910b96bf..df8c8e75 100755 --- a/prosodyctl +++ b/prosodyctl @@ -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");