What do I need to do to connect from a Windows 10 box to the server without having to give the user’s the private key of the server?
I have MongoDB 126.96.36.199 on a Windows Server 2016 server. I have a signed certificate for the server, a .p12 file that I installed in Windows. The only way I can seem to connect with TLS from a Windows 10 machine to the MongoDB hosted on the server is if I use the server’s private key that was exported as a .pem file to remove the password. This is not a secure solution.
Config file for the DB is:
net: port: 27017 bindIp: *ipaddress* , *server FQDN* tls: mode: requireTLS certificateSelector: subject=*server FQDN*
There are no errors when the server starts
I can connect to the server with TLS from a Windows 10 box using the following command:
mongo.exe mongosh --tls --host server FQDN --tlsCertificateKeyFile c:\temp\cert.pem
In the server log file it shows “Client connecting with server’s own TLS certificate”
Any help would be greatly appreciated. I feel that the Mongo Installation Manual is a bit too vague on how to get this working properly.