Windows 10 SSL证书验证失败

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Windows 10 SSL证书验证失败相关的知识,希望对你有一定的参考价值。

我的错误今天出现(在它工作正常之前)。我有SSL证书验证失败。我根据网络解决方案将库更新到最新版本:

Python 3.6.5

certifi==2018.8.24
requests==2.19.1
urllib3==1.23

也许证书已经过时了? (我不知道)

操作系统:赢得10个可修复性:100%

Traceback (most recent call last):
  File "...venvlibsite-packagesurllib3connectionpool.py", line 594, in urlopen
    self._prepare_proxy(conn)
  File "...venvlibsite-packagesurllib3connectionpool.py", line 810, in _prepare_proxy
    conn.connect()
  File "...venvlibsite-packagesurllib3connection.py", line 326, in connect
    ssl_context=context)
  File "...venvlibsite-packagesurllib3utilssl_.py", line 325, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "C:UsershtrelaAppDataLocalProgramsPythonPython36-32libssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "C:UsershtrelaAppDataLocalProgramsPythonPython36-32libssl.py", line 814, in __init__
    self.do_handshake()
  File "C:UsershtrelaAppDataLocalProgramsPythonPython36-32libssl.py", line 1068, in do_handshake
    self._sslobj.do_handshake()
  File "C:UsershtrelaAppDataLocalProgramsPythonPython36-32libssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "...venvlibsite-packages
equestsadapters.py", line 440, in send
    timeout=timeout
  File "...venvlibsite-packagesurllib3connectionpool.py", line 630, in urlopen
    raise SSLError(e)
urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)
答案

证书可能已经过期了,你看过证书属性吗? - 罗伯特8月31日18:01

是的,就是这种情况,但我自己无法检查。负责人回答了我的确认。

以上是关于Windows 10 SSL证书验证失败的主要内容,如果未能解决你的问题,请参考以下文章

SSL 服务器证书验证在代码中失败,但在 openssl 中没有

如何在 Windows 上更新 SSL 证书?

Subversion Server SSL 证书验证失败:和其他原因

file_get_contents():SSL 操作失败,代码为 1(证书验证失败)

CurlException: [curl] 51: SSL: 证书验证失败

Codeigniter CI 商家 SSL 证书验证失败