-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Connectivity
-
None
-
Not Needed
Problem Statement/Rationale
The copy/paste instructions provided by Atlas for X.509 authentication to a cluster fail with mongosh 1.0.5.
Steps to Reproduce
Create an Atlas cluster and an X.509 user in the project. Get the X.509 connection instructions from the Atlas UI and try to run them:
mongosh "mongodb+srv://<HOSTNAME>/myFirstDatabase?authSource=%24external&authMechanism=MONGODB-X509" --tls true --tlsCertificateKeyFile ./testdata/certs/client_combined.pem
Expected Results
Connection succeeds.
Actual Results
Connection fails with "MongoParseError: All values of tls must be the same."
Additional Notes
The connection succeeds if I remove "--tls" from the connection instructions. It also fails if I pass a URI that contains "tls=true&tls=true". Per the drivers URI options spec, it doesn't seem like this should be an error.
- related to
-
NODE-3591 Node driver v4.0+ does not present TLS certificate to the server
- Closed