MongoClientSettings.authenticateSSL

Sets ssl, the username, the PEM key file and the trusted CA file in this MongoClientSettings instance.

class MongoClientSettings
void
authenticateSSL
(
string username
,,
string sslCAFile = null
)

Parameters

username string

The username as provided in the cert file like

sslPEMKeyFile string

Path to a certificate with private key and certificate chain to connect with.

sslCAFile string

Optional path to a trusted certificate authority file for verifying the remote certificate.

Meta