ca certs function updates (#5555)

This commit is contained in:
lohit
2025-09-12 21:49:49 +05:30
committed by GitHub
parent dbfbde43cf
commit 9fc885839f
3 changed files with 7 additions and 7 deletions

View File

@@ -155,7 +155,7 @@ const runSingleRequest = async function (
httpsAgentRequestFields['rejectUnauthorized'] = false;
} else {
const caCertFilePath = options['cacert'];
let caCertificatesData = await getCACertificates({ caCertFilePath, shouldKeepDefaultCerts: !options['ignoreTruststore'] });
let caCertificatesData = getCACertificates({ caCertFilePath, shouldKeepDefaultCerts: !options['ignoreTruststore'] });
let caCertificates = caCertificatesData.caCertificates;
httpsAgentRequestFields['ca'] = caCertificates || [];
}