Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Error msg when doing client-side authentication

Reply
Thread Tools

Error msg when doing client-side authentication

 
 
David Martin
Guest
Posts: n/a
 
      10-08-2005
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)



 
Reply With Quote
 
 
 
 
Mfenetre
Guest
Posts: n/a
 
      10-10-2005
Hello David,

I've exactly the same problem as you.
I've posted this
http://groups.google.fr/group/micros...70cb237c730c90

but I'm still in the dark...

Alexis.

 
Reply With Quote
 
 
 
 
Mfenetre
Guest
Posts: n/a
 
      10-10-2005
Well in fact, not exactly...

I've tried to load the certificate from a file but it has never worked.
However, I've found some posts saying that if you load the certificate
from the current user personal store, it should work (look how I did it
in my post) but it didn't work for me...

regards,

Alexis.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Read .msg attachment from a mail(.msg) akila_natarajan Java 0 05-13-2011 07:35 AM
[ANN] ruby-msg-1.3.1 (outlook msg lib) and ruby-ole-1.2.1 Charles Lowe Ruby 0 08-22-2007 01:13 AM
[ANN] ruby-msg-1.2.17 (converter for outlook msg files) Charles Lowe Ruby 0 05-13-2007 06:55 AM
Got error msg while Debugging : Error while trying to run project: ... ^CrazyCoder^ ASP .Net 3 09-15-2003 09:40 AM
ModelSim Error Msg Yogi V. VHDL 3 07-03-2003 10:48 AM



Advertisments