
Open the outcert.pem in a text-editor smart enough to understand line-endings, so not notepad.Where rootcert is the filename of the certificate you saved in step 5. Openssl x509 -inform DES -in **rootcert**.cer -out outcert.pem -text Convert the file you saved in step 5 by using this command:.We will use openssl to convert the file to the PEM format we need for NPM to understand it. Most likely the openssl executable will be at C:\Program Files\git\usr\bin\openssl.exe. Otherwise, install git for windows at this stage. If you have Git installed you will have openssl.exe.Pick a suitable filename, like rootcert.cer Pick the DER format and make note of where you save the file. Click that certificate and then "view certificate" The top certificate, or the root certificate is the one we want to extract. Click the lock icon, click View certificates or "Valid" in Chrome.Go to a webpage using https, for example Stackoverflow in Chrome or Internet Explorer.You can also use curl's "firefox-db2pem.sh" shellscript to convert your local Firefox database. Download the CA Certificates from curl based on Mozilla's CA bundle.What we can do instead is add the certificate that is being injected, by the "man in the middle" certificate. Using strict-ssl false is bad practice and can create issues. I base most of my answer on the information there. There is good information on curl's page on SSL and certificate issues.

If you want the module to be available globally, add option -g.override your proxy settings by using npm -without-ssl -insecure -proxy install _.


