From 86571800bd235c3dcfc3a30335d4646a27fcd832 Mon Sep 17 00:00:00 2001 From: Yurii Date: Wed, 25 Sep 2024 21:34:15 +0300 Subject: [PATCH] fix: Remove unnecessary LDAP query of Certificate Revocation List during signing process (which is not supported and lead to exception). --- lib/zgacertsutil.js | 5 ++++- package-lock.json | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/zgacertsutil.js b/lib/zgacertsutil.js index e392fe4..f51dd82 100644 --- a/lib/zgacertsutil.js +++ b/lib/zgacertsutil.js @@ -505,8 +505,11 @@ z.CertsChain = class{ for(var i=0; i<_this.crls.length; i++){ z.log("Query crl for [" + _this.crls[i] + "]"); + const url = _this.crls[i]; + // A query of the Certificate Revocation List (CRL) via LDAP is unnecessary during the signing process. + if(url.slice(0,4)==='ldap') continue; /** @type {Uint8Array} */ - var crl = await z.urlFetch(_this.crls[i]); + var crl = await z.urlFetch(url); if(crl){ crls.push(crl); } diff --git a/package-lock.json b/package-lock.json index 8409a51..317484d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "zgapdfsigner", - "version": "2.7.2", + "version": "2.7.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "zgapdfsigner", - "version": "2.7.2", + "version": "2.7.3", "license": "MIT", "dependencies": { "follow-redirects": "1.15.6",