如何在 Windows 上更新 SSL 证书? [英] How to update SSL certificates on Windows?
问题描述
我在使用 python 包 requests-html
时遇到问题.当软件包尝试下载 Chromium 时,出现错误:
I'm having a problem with python package requests-html
. When the package is trying to download chromium, I'm getting an error:
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]证书验证失败:无法获取本地颁发者证书(_ssl.c:1056)
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)
和here 已经在 Mac 上解决了这个问题.知道如何在 Windows 上解决这个问题吗?万一重要,使用 PIP 安装软件包可以正常工作.Windows 8,Python 3.7.
It's the same problem as here and it has been resolved for Mac. Any idea how can I fix this on Windows? In case it matters, installing packages with PIP works fine. Windows 8, Python 3.7.
推荐答案
您是否尝试过在请求参数中使用 verify=False
?
Have you tried using verify=False
in your request args?
这应该使请求忽略 SSL 证书要求.
This should make the request ignore SSL Cerificate requirements.
这篇关于如何在 Windows 上更新 SSL 证书?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!