title: MongoDB ssl .pem file in connection string
body: <p>I have a mongodb server v 3.2 configured to use ssl for client connections, with a custom-generated certificate.
  I can connect to the server using mongo.exe with the following format:</p>
  
  <blockquote>
    <p>C:\mongodb\bin>mongo.exe myhost:27017/mydb --sslPEMKeyFile
    C:\etc\ssl\mongodb.pem --ssl --username myuser --password mypassword
    --sslAllowInvalidCertificates</p>
  </blockquote>
  
  <p>Is it possible to write an equal  mongodb connection string (mongodb://....)?
  According to the <a href="https://docs.mongodb.com/manual/reference/connection-string/" rel="nofollow">documentation</a>, there is the only ssl parameter, that seems to be not enough.</p>