Hi
I have issue with tls configuration. I configured tls according documentation (tls, mode, certificateKeyFile and CAFile). I have two files - key.pem where is private key and certificate, second file ca.pem has rootca certificate. Mongodb working and so on. Whereas I have problem with connection to server though mongosh. I’m passing parameter --tls, --tlsCertificateKeyFile and --tlsCAFile during connection.
If I’m providing tlsCertificateKeyFile with certificate only, error is appearing - MongoServerSelectionError: error:1E08010C:DECODER routines::unsupported
If I’m providing private key only - error is appearing: MongoServerSelectionError: error:0480006C:PEM routines::no start line
If I’m useing --tlsCertificateKeyFile where is private key and certificate, mongosh is able to connect to server. Therefore this solution for me is strange because in connection I have to pass cert and private key. I am used to passing only certificate chain without private key. Private key is reserved for server only in this case.
Does someone expose this case me? Or maybe I doing wrong something?