Hello, I am trying the free tier of MongoDB Atlas.
In the Security->Database Access panel I have generated a mema_admin user with a X.509 certificate that I have downloaded on my local machine.
On this machine I am trying to connect to Atlas via the MongoDB Compass client.
In the Database Deployments I press the Connect button of my database and click on the Compass button (which I already have and use to access my own on-prem databases) and copy the (user_passowrd based) connection string.
On my local Compass I create a new connection and paste the connection string, then in the Authentication method choose X.509 and in the TLS/SSL tab I choose the X.509 certificate I have generated in the first step above, but when I click connect I get a red error box “A Client Certificate is required with with X509 authentication.”
I tried to see what could have caused the error but couldn’t get the exact same error.
I tried the following:
Editing the .PEM file
Choosing a different file
But both of these provided different errors to what you had received.
Could you also send a screenshot similar to the ones I have provided for the TLS/SSL screen (Please redact any personal or sensitive information before posting here).
In your TLS/SSL screenshot, you have chosen the file for Certificate Authority (.pem). Is there an option available for you under that called Client Certificate and Key (.pem)?
You’ll need to select the file for Client Certificate and Key (.pem)