skip to Main Content

`mongosh` cannot connect to MongoDB TLS cluster but `mongo` can — MongoServerSelectionError: Hostname/IP does not match certificate's altnames – Ubuntu

Metadata Versions: Ubuntu focal MongoDB 5.0.14 mongod started with args: /usr/bin/mongod --bind_ip_all --replSet=mongodb --auth --tlsCAFile=/etc/mongodb/external-ca.crt --tlsCertificateKeyFile=/etc/mongodb/external-cert.pem --tlsMode=preferTLS --clusterAuthMode=x509 --tlsAllowInvalidCertificates --tlsClusterCAFile=/etc/mongodb/internal-ca.crt --tlsClusterFile=/etc/mongodb/internal-cert.pem Problem Problem: Cannot connect to replica set with TLS enabled via mongosh I have TLS enabled on a replica…

VIEW QUESTION
Back To Top
Search