Fixing Python Discord bot error – certificate has expired (_ssl.c:1108)

Python Discord bot error – certificate has expired (_ssl.c:1108) is an error which happens because discord does not have an SSL certificate installed.

In the blog post I attempt to explain why this error takes place and how you can solve it, I will also add other solutions that could solve the error if possible.

Exploring Python Discord bot error – certificate has expired (_ssl.c:1108)

This is a python error which happens because discord does not have an SSL certificate installed.

The error should look like this. Double check in order to avoid mixing between errors.

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

Bellow is a number of tested solutions that I have tried and worked for me.

Solution : install SSL certificate for Discord

The problem is present because discord lacks the required SSL certificate. The solution is simple you should install the missing certificate on your machine.

But there is something very important that you should not miss. You should be the administrator in order to install the SSL certificate. So, first you need to open chrome as an administrator. Make sure to also disable your antivirus program.

Navigate to discord and look for the lock symbol at the top right of the screen, then click view certificates and install a certificate. If you forget to run chrome as an administrator the certificates will not be there.

The solution above should be enough to solve the problem, if you like our effort make sure to consider donating to our Kofi account, there is a red button that you can use if you are feeling generous.

Summing-up

The solutions above should be enough to solve your problem, I hope the article helped you get rid of the issue, please keep learning, keep coding and cheers.

If you want to learn more about Python, please check out the Python Documentation : https://docs.python.org/3/