Ask a Question related to ASP.NET Security, Design and Development.
-
Arun #1
403 error...
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.
Thanks,
Arun
Arun Guest
-
Error Message "A drawing error ocurrred which is probably due to an out-of-memory condition. Try qu
I am running Acrobat Reader 5.0 on a Mac Powerbook running OS 9.2 and keep getting "A drawing error occurred which is probably due to an out of... -
Error 403 Failed to read heders Error for long-runningCFMAIL and CFINDEX command
I have two different pages with long-running scripts on which I am recieving the following error: Error - 403 Failed to read headers to server:... -
Error Creating Control: Parser Error DocHeader does not have a property named 'cc3:MyItems'
I am having problems getting this webcontrol working properly. Everything else works fine except having items. So here is the low-down on the... -
Unexpected error. A trappable error (C0000005) occurred in an external object.
Hi Elvin, After doing some reseaarch on this problem, I found there is a lot of issues which may cause the problem, for example, incorrect access... -
An error occurred while try to load the string resources (GetModuleHandle failed with error -2147023888)
Hello, on one of our customers servers we get following error on first ASPX-page: An error occurred while try to load the string resources... -
Joe Kaplan \(MVP - ADSI\) #2
Re: 403 error...
Does the certificate in the store say it has a private key associated with
it? CAPI needs to have the private key available for SSL client
authentication, so you need to make sure the private key is imported into
the store when you import the certificate.
Joe K.
"Arun" <aknss@hotmail.com> wrote in message
news:93980cbb.0406150614.458e27d9@posting.google.c om...> 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.
>
> Thanks,
> Arun
Joe Kaplan \(MVP - ADSI\) Guest
-
Chun #3
Re: 403 error...
Hi Arun,
I having same error as you and i did all the steps you did. Can you
tell me how to fix it?
Thanks,
Chun
"Joe Kaplan \(MVP - ADSI\)" <joseph.e.kaplan@removethis.accenture.com> wrote in message news:<u9TGzxvUEHA.1472@TK2MSFTNGP09.phx.gbl>...> Does the certificate in the store say it has a private key associated with
> it? CAPI needs to have the private key available for SSL client
> authentication, so you need to make sure the private key is imported into
> the store when you import the certificate.
>
> Joe K.
> "Arun" <aknss@hotmail.com> wrote in message
> news:93980cbb.0406150614.458e27d9@posting.google.c om...> > 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.
> >
> > Thanks,
> > ArunChun Guest



Reply With Quote

