Tuesday 15 April 2014

node.js - Location of npm CA cert -


We have a corporate mandatory SSL MITM and I would like to get npm to play well I am trying to With no configuration, creates NPM installs

 $ NPM install --verbose ... NPM action request URI https://registry.npmjs.org/ Request NPM Action Required Notification Required NPM Information Attempts Attempt to Registry Request 12:21:46 NPM Action # 1 NPM HTTP Request on ETag "BHYPP2OQ6VBKY2B3TPXTCBVRQ" https://registry.npmjs.org/request NPM Information Re: Efforts will try again, error on last attempt: Error: SELF_SIGNED_CERT_IN_CHAIN ​​NPM information on last attempt again try again Will try, error: SELF_SIGNED_CERT_IN_CHAIN ​​NPM information will retry the attempt at the last attempt, error: error error: SELF_SIGNED_CERT_IN_CHAIN ​​...  

When I put our

  ca = "----- BEGIN certificate ----- \ n ..."  

I get the following

 $ NPM install --verbose ... get NPM HTTP request https://registry.npmjs.org/time-grunt NPM Action Request URI https://registry.npmjs.org/request NPM Action Request No Authentication Requires NPM Information attempts Registry Un Conflict # 1 at 12:27:17 npm Action Attag "Try BHYPP2OQ6VBKY2B3TPXTCB VRQ" NPM Received HTTP Request https://registry.npmjs.org/request Retrying the NPM information will try again on the last attempt, error: error : Hostname / IP does not match the certificate's altnames NPM information will retry the last attempt, error: error: hostname / ip certificate does not match altnames ...  

Which, if I understand correctly, this is an SSL address Rmanptr using as the sole root npm CA, which is understandable why it would not work. ~ / .npmrc to a ca [] = "----- BEGIN certificate ----- \ n ..." Blowing with line for each The lack of CA, is there any single certs.pem file? Can I add my inner brain?

& Gt; /usr/local/etc/openssl/cert.pem

I hope there is something similar for NPM / node.

Try to set strict-SSL flag before I had a similar problem

< P> npm config set strict -sl false

I have actually been certified with your ~ / .npmrc, but not sure if you leave it anything Will affect.


No comments:

Post a Comment