yum
Edit /etc/yum.conf, and Add a line:
sslverify=false
curl
curl -k https://example.com/some.tar.gz
apt-get
新增一個檔案 /etc/apt/apt.conf.d/skipssl.conf
內容:
Acquire::https {
Verify-Peer "false";
Verify-Host "false";
}
python
pip 有時候會有其他網址,視實際執行情況增加 trusted-host
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org sqlalchemyPYTHONHTTPSVERIFY=0 python mypython.py