如何验证我的SSL证书是否不符?

编程入门 行业动态 更新时间:2024-10-26 15:16:16
本文介绍了如何验证我的SSL证书是否不符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

每当我尝试启动Discord bot时,都会出现此错误消息,而且我也不知道为什么我的SSL证书已过期,因为如果我通过浏览器访问Discordapp,证书仍不会过期(有效期至2020年11月) 。

Whenever I try to start my Discord bot, this Error Message comes up and I have no idea why my SSL certificate is expired, since if I visit Discordapp via Browser the certificate is still not expired (valid through Nov 2020).

我如何更新此特定证书?

How can I update this specific certificate?

我参加了Win 10(2004年版)

I am on Win 10 (ver 2004)

Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiohttp\connector.py", line 936, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\asyncio\base_events.py", line 1050, in create_connection transport, protocol = await self._create_connection_transport( File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\asyncio\base_events.py", line 1080, in _create_connection_transport await waiter File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\asyncio\sslproto.py", line 529, in data_received ssldata, appdata = self._sslpipe.feed_ssldata(data) File "C:\Users\Fabian Mooslechner\AppData\Local\Programs\Python\Python38-32\lib\asyncio\sslproto.py", line 189, in feed_ssldata self._sslobj.do_handshake() File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\ssl.py", line 944, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1108) The above exception was the direct cause of the following exception: Traceback (most recent call last): File ".\bot.py", line 196, in <module> bot.run(TOKEN) File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\client.py", line 640, in run return future.result() File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\client.py", line 621, in runner await self.start(*args, **kwargs) File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\client.py", line 584, in start await self.login(*args, bot=bot) File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\client.py", line 442, in login await self.http.static_login(token.strip(), bot=bot) File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\http.py", line 261, in static_login data = await self.request(Route('GET', '/users/@me')) File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\http.py", line 165, in request async with self.__session.request(method, url, **kwargs) as r: File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiohttp\client.py", line 1012, in __aenter__ self._resp = await self._coro File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiohttp\client.py", line 480, in _request conn = await self._connector.connect( File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiohttp\connector.py", line 523, in connect proto = await self._create_connection(req, traces, timeout) File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiohttp\connector.py", line 858, in _create_connection _, proto = await self._create_direct_connection( File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiohttp\connector.py", line 1004, in _create_direct_connection raise last_exc File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiohttp\connector.py", line 980, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiohttp\connector.py", line 938, in _wrap_create_connection raise ClientConnectorCertificateError( aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host discordapp:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1108)')]

推荐答案

Sectigo的AddTrust外部CA根证书于5月30日到期。

Sectigo's AddTrust External CA Root Expired May 30th.

安装此证书来解决该问题。下载链接位于页面中间一半的左侧。或者,您可以直接此处下载。 您可以在Sectigo的知识库中找到有关此问题的更多信息此处

Install this certificate to solve the problem. The download link is on the left hand side, half way down the page. Or you can just download it directly here. You can find more information about the issue on Sectigo's Knowledge base here

更多推荐

如何验证我的SSL证书是否不符?

本文发布于:2023-06-06 04:44:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/534743.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:证书   SSL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!