cacert support through process environment vars

This commit is contained in:
Brent Shikoski 2023-09-08 20:56:12 -05:00
parent 18afb73238
commit e328a4615e

View File

@ -53,7 +53,8 @@ const runSingleRequest = async function (filename, bruJson, collectionPath, coll
});
}
else {
const cacert = options['cacert'];
const cacertArray = [options['cacert'], process.env.SSL_CERT_FILE, process.env.NODE_EXTRA_CA_CERTS];
const cacertFile = cacertArray.find(el => el);
if (cacert && cacert.length > 1) {
try {
caCrt = fs.readFileSync(cacert)