prebuild-install icon indicating copy to clipboard operation
prebuild-install copied to clipboard

Add options to set location for CA file

Open Kiarashz opened this issue 5 years ago • 1 comments

When setting download location with --download option, https URLs with self-signed certificates can not be accessed failing with the following error.

 prebuild-install WARN install unable to verify the first certificate

The code seems not to respect NPM configuration for cafile and does not provide its own option too.

Kiarashz avatar Jun 11 '20 15:06 Kiarashz

PR is welcome. I'm assuming it would be a few lines of code, reading something like process.env.npm_config_cafile and passing it to the request.

vweevers avatar Jun 26 '20 06:06 vweevers