Reputation: 3249
Is there way to attach client side SSL file (.pfx) file in WCF binding? I don't want to use certificate store.
Upvotes: 1
Views: 2218
Reputation: 3249
This should work
webServiceProxyInstance.ClientCredentials.ClientCertificate.Certificate = new X509Certificate2("path to the pfx file", "password to open the private key");
Upvotes: 2