Understanding Self-Signed Certificate in Chain Issues on Node.js, npm, Git and other applications

Jônatas Castro
Feb 27 · 4 min read
Browser icon https status
Windows Certificate Manager. For more information about the Windows Certificate Manager: https://docs.microsoft.com/en-us/windows/desktop/seccrypto/managing-certificates-with-certificate-stores
SSL connection error screen on Google Chrome

On npm

npm config set strict-ssl false --global
npm config set cafile /path/to/your/cert.pem --global

On Node.js

set NODE_EXTRA_CA_CERTS=/path/to/your/cert.pem

On Git

git config http.sslVerify false
git config http.sslCAinfo /your/path/to/cacert-client.pem

On PyPi

pip install <package_name> --trusted-host pypi.python.org
pip install --cert /path/to/your/cert.pem

Jônatas Castro

Written by

A passionate full stack developer who brings creative ideas from areas including UI/UX design, API design, and digital marketing

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade