Certifacte verify failed: certificate has expired (_ssl.c:1108)

空扰寡人 提交于 2020-06-08 11:52:29

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/62102897/certifacte-verify-failed-certificate-has-expired-ssl-c1108

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!