From d1a34b83299bc587ac384e6028640c0f3cfaac8a Mon Sep 17 00:00:00 2001 From: Christian Hohnstaedt Date: Tue, 3 Oct 2017 15:06:36 +0200 Subject: [PATCH] Fix Hash algorithm when converting certificate to PKCS#10 Use the one from the certificate instead of SHA1 --- lib/db_x509.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db_x509.cpp b/lib/db_x509.cpp index aa7008f0..f65f7b79 100644 --- a/lib/db_x509.cpp +++ b/lib/db_x509.cpp @@ -1106,7 +1106,7 @@ void db_x509::toRequest(QModelIndex idx) check_oom(req); req->setIntName(cert->getIntName()); req->createReq(cert->getRefKey(), cert->getSubject(), - cert->getRefKey()->getDefaultMD(), cert->getV3ext()); + cert->getDigest(), cert->getV3ext()); createSuccess(mainwin->reqs->insert(req)); } catch (errorEx &err) {