Error msg when doing client-side authentication

From: David Martin (fredit_at_charter.net)
Date: 10/09/05


Date: Sat, 8 Oct 2005 19:51:01 -0400

Hi,
I am trying to make a request from a web service to an external
site which uses https. I have a certificate (.p12 format) from them. I
have performed the following steps:

1. Exported the certificate to DER encoded .CER file.
2. Imported the certificate into the Trusted Root CA of the local
computer
3. Used X509Certificate.CreateFromCertFile() to create a
X509Certificate object from the .CER file.
4. Added this certificate to the HttpWebRequest using
httpRequest.ClientCertificates.Add(cert);
5. When I try to retrieve the response using
httpRequest.GetResponse(), I get the following error:
"The remote server returned an error: (403) Forbidden."

Any idea what this means and how to get past it? I have a feeling that
the certificate is not being sent to the external site.
Any help will be highly appreciated.

(This post was posted a long time ago.. but never got an answer)



Relevant Pages

  • HttpWebRequest client certificate private key problem (VB.NET 2002)
    ... I have a valid client certificate with a corresponding private key. ... certificate is in x509 format and the .cer file contains the private ... Q1- What kindof filedoes the CreateFromSignedFile accept? ...
    (microsoft.public.dotnet.security)
  • Re: Password for certificate
    ... documentation for the webservice also shows an example where only a .cer file ... What I'm guessing is happening is that you supply the .cer file and .NET ... uses that to locate the matching certificate installed in the local store ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ...
    (microsoft.public.dotnet.security)
  • Re: SBS - connecting to mobile device help with certificate needed
    ... I have a HTC Mogul now and it had to go at the root. ... the .cer file and tap it to install it. ... Could anyone tell me if I need a personal certificate - and if so ...
    (microsoft.public.windows.server.sbs)
  • Re: Trying to get PocketPC to sync with server - please help!
    ... Your admin should easily be able to get you a .cer file. ... properties of the certificate, and exporting it. ... The server is accessible by Outlook ...
    (microsoft.public.exchange.admin)
  • Re: Certificate Trust List
    ... a CER file does not contain the private key, that is why it is not working. ... You need to run the wizard from a profile that has the private key. ... I imported the CTL signing certificate in my ... >>>>Is the CTL signing certificate in your local profile? ...
    (microsoft.public.win2000.security)