Even if you have valid credentials, if your IP address is not in the IP Access List, you won’t be able to access the cluster.
mongosh "mongodb+srv://cluster0.laaztrd.mongodb.net/" --apiVersion 1 --username adm1n
Enter password: ****************
Current Mongosh Log ID: 69fb32c5091afa47a9544cb7
Connecting to: mongodb+srv://<credentials>@cluster0.laaztrd.mongodb.net/?appName=mongosh+2.3.8
MongoServerSelectionError: 40D8BFAFE9790000:error:0A000438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1605:SSL alert number 80
. It looks like this is a MongoDB Atlas cluster. Please ensure that your Network Access List allows connections from your IP.
To solve this, go to the dashboard and find Database & Network Access > IP Access List, then add your IP address. Be careful not to enter 0.0.0.0/0 as that will allow all IP addresses access to the cluster.