x509 cert not being submitted
From: RP (rp@nospam.com)
Date: 02/14/03
- Previous message: David Thom: "Does .NET detect alterations to an assembly?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "RP" <rp@nospam.com> Date: Fri, 14 Feb 2003 11:44:05 -0500
Ok, I am trying to attach a certificate to a httpwebrequest and send it.
After some debugging on the server-side I have noticed that the certificate
is not being sent at all. And the problem is that i get no error on the
client code while doing the attaching. what could be wrong? If I browse to
the url in IE works fine!
Dim h as httpwebrequest
h = Ctype(WebRequest.Create(strsecureurl), httpwebrequest)
Dim mycert as X509Certificate =
X509Certificate.CreateFromCertFile("c:\mycert.cer")
h.clientcertificates.add(mycert)
h.contenttype = "text/xml"
h.method = "GET"
Dim hr as httpwebresponse = Ctype(h.getresponse(), httpwebresponse)
Dim s2 as stream = hr.getresponsestream()
Dim sr as new streamreader(s2)
returnstr = sr.readtoend()
sr.close()
any help would be much appreciated.
thanks,
Param
- Next message: Joe Kaplan: "Re: How to get domain\username (NT account) from a DirectoryEntry object of user?"
- Previous message: David Thom: "Does .NET detect alterations to an assembly?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|