-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Honor npm configuration for CA bundles #243
Conversation
Sigh.. retire.js is broken at the moment so "npm install" fails for node-pre-gyp. See RetireJS/retire.js#141 |
Retire.js also incorrectly flags cli-1.0.1 as vulnerable, so posted a PR for that as well to get your build to pass 😄 RetireJS/retire.js#143 |
Thank you for the contribution @heikkipora. I have a few questions:
|
All of gyp.opts.* are currently not merged to opts.* so opts.cafile won't be available automatically. I modified my commit so that gyp.opts.ca and gyp.opts.cafile are passed to download() via opts - which seems a bit cleaner approach to accessing them from process.env
What do you think ? |
Looks great @heikkipora, thank you for that revision. I notice that something is broken with appveyor and it appears to be in old tests that are no longer maintained. I just removed those in 35b10c3. Would you mind rebasing against master and then we'll see if your commit passes on both travis and appveyor okay? |
…en downloading binaries to honor a user-specified SSL CA.
The PR has now been rebased against master. However, there's still one (rather ironic) failure on the AppVeyor node 4.6.1/x86 environment where node-gyp tries to read a PEM CA file with undefined name 😃 . Do you have any clue why it does that or how to make that work? |
@heikkipora - thanks for the rebase. About to head to sleep here (PST) but will plan to merge in the morning. As far as that bizarre appveyor test - no, mysterious (#209) and unrelated to your PR (though I hoped your PR might solve). |
Ok! |
Merged, will be included in v0.6.32. Thanks @heikkipora! |
Honor npm configuration for CA bundles
Pass ‘ca’ and ‘cafile’ values from npm config options to request() when downloading binaries to honor a user-specified SSL CA. Allows using node-pre-gyp on environments with custom CAs.