1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-11-16 09:56:44 +00:00

cli: sha1 is deprecated, use sha256 instead.

This commit is contained in:
Priit Laes 2015-09-29 15:05:06 +03:00
parent 3e93aeee72
commit 706f4f78d3

View File

@ -549,10 +549,10 @@ def certidude_setup_authority(parent, country, state, locality, organization, or
click.echo("Signing %s..." % subject2dn(ca.get_subject())) click.echo("Signing %s..." % subject2dn(ca.get_subject()))
# openssl x509 -in ca_crt.pem -outform DER | sha1sum # openssl x509 -in ca_crt.pem -outform DER | sha256sum
# openssl x509 -fingerprint -in ca_crt.pem # openssl x509 -fingerprint -in ca_crt.pem
ca.sign(key, "sha1") ca.sign(key, "sha256")
os.umask(0o027) os.umask(0o027)
if not os.path.exists(directory): if not os.path.exists(directory):