更新时间: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.
Python'requests'[SSL:CERTIFICATE_VERIFY_FAILED]证书验证失败(_ssl.c:590)
请求(仅)*.google.com 时,Python 上的 SSL3_GET_SERVER_CERTIFICATE 证书验证失败
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] 证书验证失败 (_ssl.c:777)
ssl.SSLError:[SSL:CERTIFICATE_VERIFY_FAILED]证书验证失败(_ssl.c:852)
requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] 证书验证失败
requests.exceptions.SSLError:[SSL:CERTIFICATE_VERIFY_FAILED]证书验证失败