I have a web application that must send a request to a web site via SSL with a client certificate.
I have written the code for this, but I get an error saying that a trust relationship could not be established. If I put the same code in a Windows app, it works great.
I have done some reading, and it appears problem is becasue the ASP.Net process doesn't have access to the certificate, and I need to run the code from under the same user that installed the certificate (which is why my WinApp works).
I can put the code in a service and run it under that user, but I don't know how to call the method from my asp application. Any help is much appreciated!
I have written the code for this, but I get an error saying that a trust relationship could not be established. If I put the same code in a Windows app, it works great.
I have done some reading, and it appears problem is becasue the ASP.Net process doesn't have access to the certificate, and I need to run the code from under the same user that installed the certificate (which is why my WinApp works).
I can put the code in a service and run it under that user, but I don't know how to call the method from my asp application. Any help is much appreciated!