[Tentative] Solution for SSL-related errors that occur in Windows + Discord.py ([SSL: CERTIFICATE_VERIFY_FAILED])

** Note: This article describes the solution I found for the time being. We cannot guarantee that this is safe, so whatever happens, please do so at your own risk. We also do not guarantee that this article is accurate. ** **

Overview

When I tried to run the Discord.py bot on Windows, I got an SSL related error.

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1108)

environment

Cause / Solution

I saw https://github.com/Rapptz/discord.py/issues/4159. It seems that the root certificate expired on May 30th. (Reference: https://crt.sh/?id=1)

Some people speculate that the four certificates that were originally supposed to be included in the app were not included for some reason. Anyway, does the certificate that lacks the look look the same? So I will download it from here. → https://crt.sh/?id=2835394 By the way, crt.sh is a site operated by Sectigo (COMODO CA brand), so you can trust it.

DL "2835394.crt" from "Download Certificate: PEM" at the bottom left of the image. SnapCrab_NoName_2020-6-17_1-47-15_No-00.png Double-click to run and install the certificate. Follow the wizard that appears to proceed with the installation. It's up to you whether you want to install it on your local computer or as a user, but it seems better to install it on your computer.

This is the solution.

Well, if it's Windows or Sectigo's Appdemis, I think it will be cured if it is updated properly in the future.

Postscript

There is also a method of going to discord.com in IE and clicking the key mark, but I did not explain it because the issue stated that this method was not good.

Recommended Posts

[Tentative] Solution for SSL-related errors that occur in Windows + Discord.py ([SSL: CERTIFICATE_VERIFY_FAILED])
Eliminate errors that occur when using Django REST Swagger with Django 3.0
(Note) Django in Vagrant environment
Errors related to memcached in django
[Tentative] Solution for SSL-related errors that occur in Windows + Discord.py ([SSL: CERTIFICATE_VERIFY_FAILED])
(Note) Template file search order in Django
Solution to the problem that Ctrl + z cannot be used in Powershell in Docker for windows environment (provisional)