How to fix Python SSL CERTIFICATE_VERIFY_FAILED

More Less
1 min readMar 26, 2019

On a router with merlin firmware, I installed entware and python,

after I ran speedtest python script.

It shows error:

python2.7# speedtest
Retrieving speedtest.net configuration...
Cannot retrieve speedtest configuration
ERROR: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)>

how to fix Python SSL errors when downloading web pages using the https protocol in Python (e.g. by using the urllib, urllib2, httplib or requests. This error…

--

--

More Less

自由撰稿人,时评人,平等公义追求者