Last active
February 17, 2017 04:34
-
-
Save mursino/abc651f96b87dc7cc4bf3087825bba2c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cert = new X509Certificate2("client.pfx", "mySuperSecretPassword"); | |
args.MongoSettings.SslSettings = new SslSettings(); | |
args.MongoSettings.SslSettings.ClientCertificates = new[] { cert }; | |
args.MongoSettings.UseSsl = true; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi mursion,
Your blog is absolutely useful, I have one quick question. I'm using MongoDB Atlas (Cloud Service), are you using the Cloud version as well, how did you generate the client.pfx?
Cheers,
Zhen