From 012bb6e134f048abd5412231b7683d098c99765c Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Tue, 23 Dec 2014 00:55:39 +0000 Subject: [PATCH] Make self-signed cert with SHA-256 in --makepem --- src/Utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils.cpp b/src/Utils.cpp index 27c14131..fd6af088 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -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;