Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / May 2005

Tip: Looking for answers? Try searching our database.

X.509 certificates and HTTPwebrequest

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Deepak - 28 Mar 2005 19:15 GMT
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.
I have given permission to the key under C:\Document and
Settings\Allusers\applicationd­ata\microsoft\Crypto\RSA\Machi­neKeys for the
user ASPNET.
I have had  no success even after doing all these steps.
I have tried using LogOnuser API to change the security context but still I
had problems.
In .net framework V1.1, to successfully run LogOnuser API, we have to make
the user ASPNET to act as part of the operating system. This results to
giving high privilege account to the user ASPNET which is against our
security policy.
Environment: windows 2000
.Net framework Version 1.1
IIS 5.0
Programming Language used is VB.NET

give me some insights into the issue
Sri - 06 May 2005 14:07 GMT
Deepak,

I've had the same problem for the last month or so.... hence i'm curious
to know whether you manager to get a solution to your problem?

If not i'll keep you posted here if I get to know how to work around
this.

Cheers,
Sri
Yunus Emre ALPÖZEN [MCAD.NET] - 06 May 2005 20:42 GMT
Did u send client certificate manually ?
Did u set credentials ?

Signature

Thanks,
Yunus Emre ALPÖZEN
BSc, MCAD.NET

> We retrieve data from a company called XYZ through httpwebrequest.
> The program is coded using VB.NET
[quoted text clipped - 40 lines]
>
> give me some insights into the issue

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.