Configuring SSL Verification on a Non-Windows Machine 
                                                    If you are connecting to a MongoDB server that has Secure Sockets Layer (SSL) enabled, then you can configure the connector to connect to an SSL-enabled socket. When connecting to a server over SSL, the connector supports identity verification between the client and the server.
You can set the connection properties described below in a connection string or in a DSN (in the odbc.ini
file). Settings in the connection string take precedence over
settings in the DSN.
Configuring an SSL Connection without Identity Verification
You can configure a connection that uses SSL but does not verify the identity of the client or the server.
To configure an SSL connection without verification
- Set the 
SSLproperty to1. - Set the 
sslAllowInvalidCertificatesproperty to1. 
Configuring One-way SSL Verification
You can configure one-way verification so that the client verifies the identity of the MongoDB server.
To configure one-way SSL verification
- Set the 
SSLproperty to1. - Choose one:
 - To verify the server using a certificate from a specific 
.pemfile, set thesslCAFileproperty to the full path of the PEM file. - Or, to verify the server using certificates stored in multiple 
.pemfiles, set thesslCADirproperty to the full path of the directory where the PEM files are located. - Set the 
sslCRLFileto the full path of the.pemfile containing the list of revoked certificates. 
Configuring Two-way SSL Verification
You can configure two-way SSL verification so that the client and the MongoDB server verify each other.
To configure two-way SSL verification
- Set the 
SSLproperty to1. - Set the 
sslPEMKeyFileproperty to the full path of the.pemfile containing the certificate for verifying the client. - If the client certificate is protected with a password, set the 
sslPEMKeyPwdproperty to the password. - Choose one:
 - To verify the server using a certificate from a specific 
.pemfile, set thesslCAFileproperty to the full path of the PEM file. - Or, to verify the server using certificates stored in multiple 
.pemfiles, set thesslCADirproperty to the full path of the directory where the.pemfiles are located. - Set the 
sslCRLFileto the full path of the.pemfile containing the list of revoked certificates.