473,804 Members | 3,748 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HttpWebRequest Post with ClientCertifica tes working in Debug and VS, but not working in IIS

Hi,

Anyone's help is really appreciated!

VS05 with .net 2.0, on Windows XP/2003 IIS 5/6, on ASP,

When post a HttpWebRequest with client ceritificate

X509Certificate cert =
X509Certificate .CreateFromCert File(certFile);

Response.Write( "Loaded cert: " + cert.GetName() + ": " +
cert.GetIssuerN ame() + ", Hash:" + cert.GetCertHas hString());

HttpWebRequest objRequest =
(HttpWebRequest )WebRequest.Cre ate(url);

objRequest.Clie ntCertificates. Add(cert);

It works well in C# windows program, or ASP.net. In ASP.net, when it
is in debug mode, it works.

However, when I put the aspx into wwwroot, then the client certificate
is not being sent along with the request. Given that I have printed
out the cert info, and multiple attempts on permission, it seems like
HTTPWebRequest is not sending the client certificate.

Anyone has similar issue? Any tools that can assist me to troubleshoot
the issue?

Really appreciated!

Cheers,
Calebmei

Jun 29 '07 #1
0 1431

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
12940
by: EMonaco | last post by:
Is there any way to programmatically select a particular client certificate and associate it with an HttpWebRequest instance? I know using WinINet this was possible. Erin.
1
4684
by: Marvin | last post by:
my asp.net app is posting to another webpage using httpwebRequest & x509Certificates and in return the certificate's name used for the posting is sent back. But instead of getting information about the cert returned I'd get no information message. I know my certificate is valid because when I manually type the address my app is posting to in IE it would return the client certificate's name used in my users personal store. So...
1
1636
by: Frank | last post by:
Problem.... I need some help, i got an implementation manual wich uses asp (not ..net) code as example. In this example the object 'WinHttp' is initiated. Now this is an com object and since i'm working in c# i would like to use managed code. So i figured that i should use the 'HttpWebRequest'. All fine but the WinHttp has got an option to set and ClientCertificate. Is there a way a can set an ClientCertificate with HttpWebRequest?
1
4108
by: Kevin Landymore | last post by:
I have a vb.net service running under a Domain account. I'm trying to call a web service on our Mainframe (IBM CICS via SSL and Client Certificates) and after a while (1 or 2 days.. thousands of transactions) I'm getting the following errors: First, 2 of these: SoapDriver GotRequestStream System.Net.WebException: The underlying connection was closed: Could not establish secure channel for SSL/TLS. --->...
2
13066
by: Josef Brunner | last post by:
Hi everybody, my VB.NET (Framework 2.0) client application has to do a HttpWebRequest (for reading web-pages and downloading files) on a web server. The server uses a self-signed certifiacte and the client application should also use a self-signed certificate (of course, signed by the same self-made CA) so we would have an authentication of both directions: the server to the client and the other way round. Is there a way to...
0
1405
by: BillE | last post by:
VS2005 VB.net I'm using the HTTPWebRequest class to connect to a web site with SSL. I first manually connected to the site and installed the certificate on my computer, and then use the X509Certificate class to add the certificate to the HTTPWebRequest, but I continue to get the exception: "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."
2
16387
by: steveS | last post by:
Hi all, I'm having trouble connecting to a Java web service using HttpWebRequest. I get the error message "The request was aborted: Could not create SSL/TLS secure channel". The Java service requires a client certificate which they have provided in .cer format. I can connect ok to their test service which uses SSL but doesnt require a client certificate with the code below. I dont have great deal of knowledge about client certificates...
0
1736
by: steveS | last post by:
Hi all, I'm having trouble connecting to a Java web service using HttpWebRequest. I get the error message "The request was aborted: Could not create SSL/TLS secure channel". The Java service requires a client certificate which they have provided in .cer format. I can connect ok to their test service which uses SSL but doesnt require a client certificate with the code below. I dont have great deal of knowledge about client certificates...
0
1345
by: jitsu | last post by:
Hi, I have a problem with getting data from aplication server which is behaving like web server. I need to send there some xml query and I should receive another xml response. The aplication server trusts only these queries that have in head of the protocol the valid user name and password. //The head of HTTP protocol should look like: POST /Index.aspx HTTP/1.1
0
9584
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10337
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7622
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6854
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3822
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.