Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save karthikmurugesan2/f841eef65d2f0e0a3f742834a1fdc814 to your computer and use it in GitHub Desktop.
Save karthikmurugesan2/f841eef65d2f0e0a3f742834a1fdc814 to your computer and use it in GitHub Desktop.

Disable SSL Check for different tools

When running tools over a custom proxy like cntlm, we need to typically disable the ssl certificate verification for packages/pages through https. Below guidelines can used to disable ssl certification check.

wget

wget --no-check-certificate <url>

or you can permanently disable wget security check using this command

echo "check_certificate = off" >> ~/.wgetrc

Curl

curl -kFlo <url>

Python

export PYTHONHTTPSVERIFY=0

or alternatively use

import os, ssl

if (not os.environ.get('PYTHONHTTPSVERIFY', '') and
    getattr(ssl, '_create_unverified_context', None)):
    ssl._create_default_https_context = ssl._create_unverified_context

NPM

npm set strict-ssl false

GIT

git config --global http.sslVerify "false"

or use the following to disable ssl verify

GIT_SSL_NO_VERIFY=true git clone --recursive https://gnunet.org/git/libmicrohttpd.git/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment