Just add client certificate like this
client.ClientCredentials.ClientCertificate.Certificate = yourcert;
Edit:
X509Certificate2 yourcert= null;
var store = new X509Store(storeName, storeLocation);
store.Open(OpenFlags.OpenExistingOnly | OpenFlags.ReadOnly);
var certCollection = store.Certificates.Find(findType, thumbprint, false);
if (certCollection.Count>0)
yourcert= certCollection[0];
store.Close();
manpreet
Best Answer
2 years ago
I have a WCF service which uses basicHttpBinding. Now I want to secure my methods">methods so that no one can create a proxy and use my method. I used WCF client certification from msdn. But cant move further. here is my web.config
now what should pass call form the c sharp. I have a method in WCF named showGrid.
and trying to call it like this on a button click