From cf8f4b682ab416c017ece5c4ff47b5cc63cd41a4 Mon Sep 17 00:00:00 2001 From: KDima23 <33837241+KDima23@users.noreply.github.com> Date: Mon, 18 Sep 2023 10:31:43 +0200 Subject: [PATCH] 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. --- certoperations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certoperations.js b/certoperations.js index a737f9a7..38dfb5f6 100644 --- a/certoperations.js +++ b/certoperations.js @@ -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; }