close

[Solved] pymongo.errors.ServerSelectionTimeoutError: cluster0-shard-00-02.mny7y.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired

Hello Guys, How are you all? Hope You all Are Fine. Today I am using MongoDB with django app But I am facing following error pymongo.errors.ServerSelectionTimeoutError: cluster0-shard-00-02.mny7y.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired in Python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How pymongo.errors.ServerSelectionTimeoutError: cluster0-shard-00-02.mny7y.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired Error Occurs ?

I am using MongoDB with django app But I am facing following error.

pymongo.errors.ServerSelectionTimeoutError: cluster0-shard-00-02.mny7y.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1129),cluster0-shard-00-01.mny7y.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1129)

How To Solve pymongo.errors.ServerSelectionTimeoutError: cluster0-shard-00-02.mny7y.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired Error ?

  1. How To Solve pymongo.errors.ServerSelectionTimeoutError: cluster0-shard-00-02.mny7y.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired Error ?

    To Solve pymongo.errors.ServerSelectionTimeoutError: cluster0-shard-00-02.mny7y.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired Error This error occurs because of a root CA Let’s Encrypt uses has expired. To resolve this error we need to manually install in the Windows certificate store the “ISRG Root X1” and “ISRG Root X2” root certificates, and the “Let’s Encrypt R3” intermediate. Just Download this file from Here rename downloaded file .pem to .cer double click and installRestart your PCNow try to run app your SSL issue will resolved.

  2. pymongo.errors.ServerSelectionTimeoutError: cluster0-shard-00-02.mny7y.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired

    To Solve pymongo.errors.ServerSelectionTimeoutError: cluster0-shard-00-02.mny7y.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired Error This error occurs because of a root CA Let’s Encrypt uses has expired. To resolve this error we need to manually install in the Windows certificate store the “ISRG Root X1” and “ISRG Root X2” root certificates, and the “Let’s Encrypt R3” intermediate. Just Download this file from Here rename downloaded file .pem to .cer double click and installRestart your PCNow try to run app your SSL issue will resolved.

Solution 1

This error occurs because of a root CA Let’s Encrypt uses has expired. To resolve this error we need to manually install in the Windows certificate store the “ISRG Root X1” and “ISRG Root X2” root certificates, and the “Let’s Encrypt R3” intermediate.

  1. Just Download this file from Here
  2. rename downloaded file .pem to .cer
  3. double click and install
  4. Restart your PC
  5. Now try to run app your SSL issue will resolved.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment