标题:
SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed解决办法
[打印本页]
作者:
linda
时间:
2021-5-21 11:49
标题:
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 编辑
]
欢迎光临 中神通公司技术论坛 (http://trustcomputing.com.cn/bbs/)
Powered by Discuz! 6.0.0