Skip to content

Instantly share code, notes, and snippets.

@blockspacer
Created March 12, 2019 08:58
Show Gist options
  • Save blockspacer/0130ab09020783f3e986e9ece7410d9a to your computer and use it in GitHub Desktop.
Save blockspacer/0130ab09020783f3e986e9ece7410d9a to your computer and use it in GitHub Desktop.
Turn off SSL verification on the whole system (very bad).
# Turn off SSL verification on the whole system (very bad).
# node
echo 'NODE_TLS_REJECT_UNAUTHORIZED=0' >> /home/vagrant/.bashrc
# npm
echo "strict-ssl=false" >> /home/vagrant/.npmrc
echo "registry=http://registry.npmjs.org/" > /home/vagrant/.npmrc
# ruby
echo ':ssl_verify_mode: 0' >> /home/vagrant/.gemrc
# yum
echo "sslverify=false" >> /etc/yum.conf
echo "sslverify=false" >> /home/vagrant/.yum.conf
# wget
echo "check-certificate = off" >> /etc/.wgetrc
echo "check-certificate = off" >> /home/vagrant/.wgetrc
# curl
echo "insecure" >> /etc/.curlrc
echo "insecure" >> /home/vagrant/.curlrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment