Skip to content

Instantly share code, notes, and snippets.

@mursino
Created May 12, 2016 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mursino/bfe3add0b785d4db78881da32ec96c82 to your computer and use it in GitHub Desktop.
Save mursino/bfe3add0b785d4db78881da32ec96c82 to your computer and use it in GitHub Desktop.
var cert = new X509Certificate2("client.pfx", "mySuperSecretPassword");
var settings = new MongoClientSettings
{
SslSettings = new SslSettings
{
ClientCertificates = new[] { cert },
},
UseSsl = true
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment