且构网

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

Python'requests'[SSL:CERTIFICATE_VERIFY_FAILED]证书验证失败(_ssl.c:590)

更新时间:2022-03-12 23:24:35

您使用的证书仅适用于www.google.co.uk,但访问www.google.com。因此,证书根本不匹配。我不确定是否使用主机证书而不是发行者证书(即根CA或中间CA)将会工作。

You are using the certificate which is only valid for www.google.co.uk, but access www.google.com. Thus the certificate can not match at all. And I'm not sure if using the host certificate instead of an issuer certificate (i.e. root CA or intermediate CA) will work at all.