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.
KDima23 committed
Sep 18, 2023 at 10:31 UTC
cf8f4b682ab416c017ece5c4ff47b5cc63cd41a4
1 file changed
+1
-1
certoperations.js
+1
-1
@@ -262,7 +262,7 @@ module.exports.CertificateOperations = function (parent) {
262
acmconfig.cn = certCommonName.value;
263
}
264
}
265
- if(r.certs[0].md.algorithm){
265
+ if(r.certs[0].md){
266
acmconfig.hashAlgorithm = r.certs[0].md.algorithm;
267
}
268