Hi,
I am trying to make a call from a web service to an external site which uses SSL. I have a certificate given to us in .p12 format and have done the following:
1. Exported the certificate to a DER encoded .CER file without exporting the private keys.
2. Imported the certificate into the Trusted root CA' store of the LocalComputer
3. I have used X509Certificate.CreateFromCertFile() to create a X509Certificate object from the .CER file
4. Added the certificate to the HttpWebRequest using HttpRequest.ClientCertificates.Add(cert)
5. When I try to retrieve the response using (HttpWebRequest)HttpRequest.GetResponse(), I get the following error:

The remote server returned an error: (403) Forbidden.

Any idea what this means and how I can get past it?

Thanks,
Arun


---
Posted using Wimdows.net NntpNews Component -

Post Made from [url]http://www.DotNetJunkies.com/newsgroups[/url] Our newsgroup engine supports Post Alerts, Ratings, and Searching.