Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > httpwebrequest and client certificates

Reply
Thread Tools

httpwebrequest and client certificates

 
 
=?Utf-8?B?RGVlcGFr?=
Guest
Posts: n/a
 
      02-07-2005
We retrieve data from a company called XYZ through httpwebrequest.
The program is coded using VB.NET
They have given a certificate to install.
This certificate is included with the request object.I use httpwebrequest to
retrieve data. The certificate is added to the client certificates collection.

When this component is called from a windows application, I can retrieve the
data.
When this component is called from a web page, I get the following error
The remote server returned an error 403 forbidden.
we have no special setting in machine.config for the section processmodel.
The aspnet process is running under the username aspnet.
if I deploy my component in COM+, it runs successfully.
we feel it is because of permission issue for the user ASPNET .
I have used winhttpcertcfg tool from microsoft to give access to the private
key for the user ASPNET.
The certificate is installed under local machine account in the folder
Personals(LOCAL_MACHINE\MY).
I have no success even after utilizing winhttpcertcfg . I feel that the
httpwebrequest is somehow not passing the client certificate.
to the server. I donot want to put this component in COM+ or make any
changes to Processmodel section of machine.config files.
give me some insights into the issue
 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      02-07-2005
You are right, you are having a permission issue for the user ASPNET. When I
had a similar problem, I didn't have any luck with winhttpcertcfg either. I
ended up with running the request under the same account as the certificate
was installed under. In your case this translates to changing your ASPNET
user in machine.config.

Wish you to find a better solution.

Eliyahu

"Deepak" <> wrote in message
news:41479DED-815F-46C3-84AC-...
> We retrieve data from a company called XYZ through httpwebrequest.
> The program is coded using VB.NET
> They have given a certificate to install.
> This certificate is included with the request object.I use httpwebrequest

to
> retrieve data. The certificate is added to the client certificates

collection.
>
> When this component is called from a windows application, I can retrieve

the
> data.
> When this component is called from a web page, I get the following error
> The remote server returned an error 403 forbidden.
> we have no special setting in machine.config for the section processmodel.
> The aspnet process is running under the username aspnet.
> if I deploy my component in COM+, it runs successfully.
> we feel it is because of permission issue for the user ASPNET .
> I have used winhttpcertcfg tool from microsoft to give access to the

private
> key for the user ASPNET.
> The certificate is installed under local machine account in the folder
> Personals(LOCAL_MACHINE\MY).
> I have no success even after utilizing winhttpcertcfg . I feel that the
> httpwebrequest is somehow not passing the client certificate.
> to the server. I donot want to put this component in COM+ or make any
> changes to Processmodel section of machine.config files.
> give me some insights into the issue



 
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
python xmlrpc client with ssl client certificates and standard modules News123 Python 9 02-15-2012 01:04 PM
HttpWebRequest using Certificates Josef Brunner ASP .Net Security 9 03-03-2006 05:49 PM
Are SSL certificates and x.509 certificates the same? n33470 ASP .Net Web Services 0 12-14-2005 03:30 PM
X.509 certificates and HTTPwebrequest Deepak ASP .Net Web Services 2 05-06-2005 07:42 PM
Self-issued certificates and commercial certificates. Lord Amoeba Computer Security 2 05-05-2004 01:40 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57