diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/crl.c | 2 | ||||
-rw-r--r-- | apps/openssl.cnf | 2 | ||||
-rw-r--r-- | apps/req.c | 2 | ||||
-rw-r--r-- | apps/x509.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/apps/crl.c b/apps/crl.c index 878f65468e..3eb676e16b 100644 --- a/apps/crl.c +++ b/apps/crl.c @@ -115,7 +115,7 @@ int MAIN(int argc, char **argv) X509_OBJECT xobj; EVP_PKEY *pkey; int do_ver = 0; - const EVP_MD *md_alg,*digest=EVP_md5(); + const EVP_MD *md_alg,*digest=EVP_sha1(); apps_startup(); diff --git a/apps/openssl.cnf b/apps/openssl.cnf index 6d731cbe8b..04710f87d5 100644 --- a/apps/openssl.cnf +++ b/apps/openssl.cnf @@ -67,7 +67,7 @@ cert_opt = ca_default # Certificate field options default_days = 365 # how long to certify for default_crl_days= 30 # how long before next CRL -default_md = md5 # which md to use. +default_md = sha1 # which md to use. preserve = no # keep passed DN ordering # A few difference way of specifying how similar the request should look diff --git a/apps/req.c b/apps/req.c index d634268653..f43c477f75 100644 --- a/apps/req.c +++ b/apps/req.c @@ -187,7 +187,7 @@ int MAIN(int argc, char **argv) char *p; char *subj = NULL; int multirdn = 0; - const EVP_MD *md_alg=NULL,*digest=EVP_md5(); + const EVP_MD *md_alg=NULL,*digest=EVP_sha1(); unsigned long chtype = MBSTRING_ASC; #ifndef MONOLITH char *to_free; diff --git a/apps/x509.c b/apps/x509.c index 1dad6363de..9dc99dfa0f 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -184,7 +184,7 @@ int MAIN(int argc, char **argv) X509_REQ *rq=NULL; int fingerprint=0; char buf[256]; - const EVP_MD *md_alg,*digest=EVP_md5(); + const EVP_MD *md_alg,*digest=EVP_sha1(); CONF *extconf = NULL; char *extsect = NULL, *extfile = NULL, *passin = NULL, *passargin = NULL; int need_rand = 0; |