From a41cd0b070d9f659c39abe9383ed824cd898075f Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 5 Jul 2019 20:57:21 -0700 Subject: [PATCH] Generate SHA-256 client certificates instead of SHA-1 --- app/backend/identitymanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/backend/identitymanager.cpp b/app/backend/identitymanager.cpp index 1146ab14..7c5933b6 100644 --- a/app/backend/identitymanager.cpp +++ b/app/backend/identitymanager.cpp @@ -75,7 +75,7 @@ void IdentityManager::createCredentials(QSettings& settings) -1, -1, 0); X509_set_issuer_name(cert, name); - X509_sign(cert, pk, EVP_sha1()); + X509_sign(cert, pk, EVP_sha256()); BIO* biokey = BIO_new(BIO_s_mem()); THROW_BAD_ALLOC_IF_NULL(biokey);