证书验证失败:证书已过期(_ssl.c:1108) [英] Certifacte verify failed: certificate has expired (_ssl.c:1108)

查看:446
本文介绍了证书验证失败:证书已过期(_ssl.c:1108)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当尝试运行不和谐的bot时,我遇到此错误:

 引发ClientConnectorCertificateError(
aiohttp .client_exceptions.ClientConnectorCertificateError:无法连接到
主机discordapp.com:443 ssl:True [SSLCertVerificationError:
(1,'[SSL:CERTIFICATE_VERIFY_FAILED]证书验证失败:
证书已过期(_ssl .c:1108)')]

它刚刚开始无处不在,并且每次都发生。 / p>

我在Windows 10上使用python 3.8。



这是什么意思,我该如何解决?

解决方案

要解决此问题:




  • 使用Internet Explorer(以管理员身份运行)访问discord.com


  • 单击右上角的锁


  • 单击查看证书


  • 安装一个证书




PS:如果您的防病毒软件对Web浏览器和解决方案不起作用,请尝试将其禁用,然后重试。


When trying to run my discord bot I'm met with this error:

 raise ClientConnectorCertificateError(
     aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to
     host discordapp.com:443 ssl:True [SSLCertVerificationError: 
    (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: 
    certificate has expired (_ssl.c:1108)')]

It just started happening out of nowhere and happens every time.

I'm using python 3.8 on windows 10.

What does this mean and how do I fix it?

解决方案

To fix this:

  • Go to discord.com with Internet Explorer (Ran as Administrator)

  • Click the lock on the top right

  • Click view certificates

  • Install one

PS: If your antivirus is active for the web browser and this solution doesn't work, try disabling it and try again.

这篇关于证书验证失败:证书已过期(_ssl.c:1108)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆