if amt algorithm use it

This commit is contained in:
Simon Smith 2023-08-30 12:29:09 +01:00 committed by GitHub
parent b1d2d1aea9
commit 68763137e9
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;