I have my couchbase server and bucket url in app.config and the connectivity from .Net client to couchbase server works well with userid and password in config. But I need my SSL Cert authentication parameters also to be configured in app.config
<?xml version="1.0" encoding="utf-8"?>How to configure the below parameters from client code to above app.config.
var config = new ClientConfiguration
{
EnableCertificateAuthentication = true,
CertificateFactory = () =>
{
var storeName = “TrustedPeople”;
var myStore = new X509Store(storeName.ToLower(), StoreLocation.LocalMachine);
myStore.Open(OpenFlags.ReadOnly);
return myStore.Certificates.Find(X509FindType.FindByThumbprint, “thumbprintvalue”, true);
}
};