Make self-signed cert with SHA-256 in --makepem

This commit is contained in:
Alexey Sokolov
2014-12-23 00:55:39 +00:00
parent 2aa6c7e1d9
commit 012bb6e134
+1 -1
View File
@@ -105,7 +105,7 @@ void CUtils::GenerateCert(FILE *pOut, const CString& sHost) {
X509_set_subject_name(pCert, pName);
X509_set_issuer_name(pCert, pName);
if (!X509_sign(pCert, pKey, EVP_sha1())) {
if (!X509_sign(pCert, pKey, EVP_sha256())) {
X509_free(pCert);
EVP_PKEY_free(pKey);
return;