Merge pull request #5319 from si458/skip-amt-algorithm

if amt algorithm use it
This commit is contained in:
Ylian Saint-Hilaire 2023-09-09 23:04:19 -07:00 committed by GitHub
commit f856b96aa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,7 +262,9 @@ module.exports.CertificateOperations = function (parent) {
acmconfig.cn = certCommonName.value;
}
}
acmconfig.hashAlgorithm = r.certs[0].md.algorithm;
if(r.certs[0].md.algorithm){
acmconfig.hashAlgorithm = r.certs[0].md.algorithm;
}
delete acmconfig.cert;
delete acmconfig.certpass;