发新话题
打印

SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed解决办法

SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed解决办法

# wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
# chmod a+x speedtest-cli
# ./speedtest-cli
Retrieving speedtest.net configuration...
Cannot retrieve speedtest configuration
ERROR: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)>

解决办法
# export PYTHONHTTPSVERIFY=0 ;./speedtest-cli

# wget --quiet https://curl.haxx.se/ca/cacert.pem
# cp cacert.pem /etc/ssl/certs/
# ./speedtest-cli

[ 本帖最后由 linda 于 2021-5-21 11:57 编辑 ]

TOP

发新话题