fix skip-amt-algorithm

The r.certs[0].md field is null. Therefore, attempting to check if r.certs[0].md.algorithm is null will result in an error.
This commit is contained in:
KDima23 2023-09-18 10:31:43 +02:00 committed by GitHub
parent 2bb65110f8
commit cf8f4b682a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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