fix: Remove unnecessary LDAP query of Certificate Revocation List during signing process (which is not supported and lead to exception).

pull/9/head
Yurii 2024-09-25 21:34:15 +03:00
parent 0d39f569ae
commit 86571800bd
2 changed files with 6 additions and 3 deletions

View File

@ -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);
}

4
package-lock.json generated
View File

@ -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",