The updated driverInstaller.js retreives the value for the cafile option from the npm config (if it was specified), reads the content of the file and passes a httpsAgent with the according ca value.
The installation of the DB2 ODBC drivers through npm run install was tested successfully behind a company proxy with a certificate signed by a custom Root CA.
If the cafile option is not defined in the config, the variable httpsAgent passed to axios will be undefined. This is also a valid option for axios, as it is the default value for this parameter.
This commit contains a solution that fixes #856.
The updated
driverInstaller.js
retreives the value for thecafile
option from the npm config (if it was specified), reads the content of the file and passes a httpsAgent with the accordingca
value.The installation of the DB2 ODBC drivers through
npm run install
was tested successfully behind a company proxy with a certificate signed by a custom Root CA.If the
cafile
option is not defined in the config, the variablehttpsAgent
passed to axios will beundefined
. This is also a valid option for axios, as it is the default value for this parameter.