Use SHA1 and not deprecated MD5 in demos.
This commit is contained in:
parent
3ed3603b60
commit
98c08a6312
2 changed files with 2 additions and 2 deletions
|
@ -136,7 +136,7 @@ int mkcert(X509 **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days)
|
|||
}
|
||||
#endif
|
||||
|
||||
if (!X509_sign(x,pk,EVP_md5()))
|
||||
if (!X509_sign(x,pk,EVP_sha1()))
|
||||
goto err;
|
||||
|
||||
*x509p=x;
|
||||
|
|
|
@ -134,7 +134,7 @@ int mkreq(X509_REQ **req, EVP_PKEY **pkeyp, int bits, int serial, int days)
|
|||
|
||||
#endif
|
||||
|
||||
if (!X509_REQ_sign(x,pk,EVP_md5()))
|
||||
if (!X509_REQ_sign(x,pk,EVP_sha1()))
|
||||
goto err;
|
||||
|
||||
*req=x;
|
||||
|
|
Loading…
Reference in a new issue