Client certificate ???
From: Edvin (edvin@mobifrik.com)
Date: 01/23/03
- Next message: Mark Levison: "Re: app config file downloading (not) for winform deployment model"
- Previous message: Adam Kinney: "Re: Forms Auth and codebehind"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Edvin" <edvin@mobifrik.com> Date: Thu, 23 Jan 2003 06:34:57 -0800
Hi everybody.
I'm trying to access web page which requires client
certificate with HttpWebRequest class.
Simplified function code looks like this:
void DoHtttpPost(...)
{
...
HttpWebRequest oRequest=(HttpWebRequest)WebRequest.Create
("https://....");
X509Certificate oCert = X509Certificate.CreateFromCertFile
(@"d:\cert\aaa.cer");
oRequest.ClientCertificates.Add(oCert);
Stream oInStream=oRequest.GetRequestStream();
....
}
When I tried this function in .NET Windows form
application it works OK. But if I try to call the same
function inside .NET ASP aplication I get Exception "The
remote server returned an error: (403) Forbidden."
Any idea what is going wrong....
Thanks,
Edvin
- Next message: Mark Levison: "Re: app config file downloading (not) for winform deployment model"
- Previous message: Adam Kinney: "Re: Forms Auth and codebehind"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]