I am accessing a 3rd party client WCF secured web service using a client certificate issued by them. I have added this client certificate to my servers' certificate store. (Ref#1 (packing a certificate), Ref#2 (importing to store))
And I have the client WCF configuration as follows:
when i run my system, it gives me the following error:
In order to find where the problem is, first enable System.Net tracing. Add the following markup to the .config file
Now, run the program and open open the "System.Net.trace.log" file in your /bin/ folder
If you could see the following error message in the log, it means your program can't access the certificate keys
if it is IIS, follow this => http://www.dotnetnoob.com/2011/01/how-to-give-iis-access-to-private-keys.html
If its a normal program , use this tool to find your private key in the system.
once u found it, usually in the "C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys" folder,
> goto properties of your key,
> open security
> give your user account read + read & execute permissions
Now run the program and see if it works.