diff --git a/source/administration/ssl.txt b/source/administration/ssl.txt index e5a2076254e..b9c7bcb3ae0 100644 --- a/source/administration/ssl.txt +++ b/source/administration/ssl.txt @@ -204,3 +204,23 @@ To connect to a replica set via SSL, use the following form: ); .. _`node-mongodb-native`: https://github.com/mongodb/node-mongodb-native + +.NET +~~~~ +As of release 1.6 of the .NET driver, to use SSL with a server, all that is needed +is to add an option to the connection string, "ssl=true". + +.. code-block:: csharp + + var connectionString = "mongodb://localhost/?ssl=true"; + var server = MongoServer.Create(connectionString); + +Using SSL in the .NET driver will cause the server certificates to get validated +against the local trusted certificate store. This can cause issues in testing due +to test machines not having trusted certificates. If this is the case, you can +add another option to prevent validating the certificates, "sslverifycertificate=false". + +.. code-block:: csharp + + var connectionString = "mongodb://localhost/?ssl=true&sslverifycertificate=false"; + var server = MongoServer.Create(connectionString); \ No newline at end of file