vibe.d beta banner
get vibe.d
0.9.0

Asynchronous I/O that doesn’t get in your way, written in D

Function MongoClientSettings.authenticateSSL

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

void authenticateSSL (
  string username,
  string sslPEMKeyFile,
  string sslCAFile = null
) @safe;

Parameters

NameDescription
username The username as provided in the cert file like "C=IS,ST=Reykjavik,L=Reykjavik,O=MongoDB,OU=Drivers,CN=client". The username can be blank if connecting to MongoDB 3.4 or above.
sslPEMKeyFile Path to a certificate with private key and certificate chain to connect with.
sslCAFile Optional path to a trusted certificate authority file for verifying the remote certificate.
Authors

Sönke Ludwig

Copyright

© 2012-2016 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.