Amzath
Amzath

Reputation: 3249

Adding Client SSL certificate to the WCF binding

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

Answers (1)

Amzath
Amzath

Reputation: 3249

This should work

webServiceProxyInstance.ClientCredentials.ClientCertificate.Certificate = new X509Certificate2("path to the pfx file", "password to open the private key");

Upvotes: 2

Related Questions