. Advertisement .
..3..
. Advertisement .
..4..
Python was created by Guido van Rossum and first released in 1991. It is widely used in artificial intelligence or AI development.
When you are doing your task, you may get one notification that says, “pymongo.errors.ServerSelectionTimeoutError: cluster0-shard-00-02.mny7y.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired“.
This is a very basic mistake that any programmer will create. As a result, how does this happen, and what could be done to prevent it? We’ll go over everything with you.
Why Does The Issue: “pymongo.errors.ServerSelectionTimeoutError: cluster0-shard-00-02.mny7y.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired” Occur?
You’re using MongoDB in conjunction with a Django app, but you’re getting the following error. We will present the best approach that many experts use to solve this problem.
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)
The Top Basic Approach
This mistake appears since the root CA used by Let’s Encrypt has officially ended. To fix this mistake, we must manually configure the “ISRG Root X1” and “ISRG Root X2” root certificates, as well as the “Let’s Encrypt R3” intermediate, in the Windows credential store.
First, you need to download the file from Rename the downloaded file here. Next, you must double-click the pem to.cer file and install it. Now, restart your computer, and then try to run the app again. Your SSL problem should be resolved.
Conclusion
Python has become one of the most prevalent programming languages today. It is a general-purpose, high-level, and powerful object-oriented programming language that features a powerful high-level data structure type and large library system.
Those solutions listed here are all the easiest for those who continue to encounter the error “pymongo.errors.ServerSelectionTimeoutError: cluster0-shard-00-02.mny7y.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired“.
If you still need assistance or have basic Java issues, we have a growing community where everyone is always willing to assist.
In addition, we wish ourselves another productive day filled with new ideas and coding.
Leave a comment