Fix Hash algorithm when converting certificate to PKCS#10

Use the one from the certificate instead of SHA1
This commit is contained in:
Christian Hohnstaedt 2017-10-03 15:06:36 +02:00 committed by Christian Hohnstaedt
parent cefb140601
commit d1a34b8329

View File

@ -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) {