16👍
This is because of a root CA Let’s Encrypt uses (and Mongo Atals uses Let’s Encrypt) has expired on 2020-09-30 – namely the "IdentTrust DST Root CA X3" one.
The fix is 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 one – link to their official site – https://letsencrypt.org/certificates/
Copy from the comments: download the .der field from the 1st category, download, double click and follow the wizard to install it.
13👍
I solved the problem on my windows machine. It had to do with the expiring DST Root CA X3 certificate from Let’s Encrypt.
- Download https://letsencrypt.org/certs/lets-encrypt-r3.pem
- rename file .pem to .cer
- double click and install
- Restart your PC
Still, if it doesn’t work
- Go to https://letsencrypt.org/certificates/
- Download ISRG Root X1, ISRG Root X2 ( Root Certificates), Let’s Encrypt R3 ( Intermediate Certificates)
- Restart your PC
- Disable prefers-color-scheme: dark in django admin
- Django Serialize Queryset to JSON to construct RESTful response with only field information and id
- The current URL, app/, didn't match any of these
5👍
I found the solution in the mongoDB community. Download https://letsencrypt.org/certs/lets-encrypt-r3.pem
- rename the
.pem
file to.cer
- double-click and install
- try to run the app
Your SSL issue should be resolved.
source: https://www.mongodb.com/community/forums/t/keep-getting-serverselectiontimeouterror/126190/13
- Errno 13 while running docker-compose up
- Django: Highlight current page in navbar
- Django signals, how to use "instance"
0👍
Another solution from MongoDB community. Super easy and worked for me. You can read the full solution here –
https://www.mongodb.com/community/forums/t/keep-getting-serverselectiontimeouterror/126190/
Here is what worked for me (Windows 11) –
heck that dnspython, pymongo and certifi are installed in your virtual environment or install them by:
pip install dnspython pymongo certifi
Can you use the terminal/command line and run Python, in the Python environment can you enter and = run the following commands (please change the password as appropriate for your user in your Atlas cluster):
from pymongo import MongoClient
import certifi
s = MongoClient("mongodb+srv://m220student:m220password@cluster0.maiqr.mongodb.net", tlsCAFile=certifi.where())
- Django.db.migrations.exceptions.CircularDependencyError
- Django.db.utils.InterfaceError: connection already closed failures when updating to Django 3.0
- Refresh <div> element generated by a django template