且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Windows:Python SSL证书验证失败

更新时间:2021-11-23 22:31:24

我花了几天时间弄清楚如何解决此问题.最后,我将我公司的CA证书添加到请求库使用的配置文件中.您可以通过以下方式检查此文件的路径:

I spent a few days figuring out how to solve this problem. Finally I add the CA certificate of my company in a configuration file used by requests library. You can check the path of this file by:

import requests as r
print(r.certs.where())

只需在证书的底部添加证书!

Just add the certificate at the bottom of it!