ClientCertificate from LocalMachine Store
From: Joe Case (jcase4_at_nospamhotmail.com)
Date: 05/28/03
- Previous message: Joe Kaplan \(MVP - ADSI\): "Re: windows NTLM authentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 28 May 2003 11:55:13 -0400
I am trying to include a ClientCertificate in a HttpWebRequest. The
Certificate is in the LocalMachine/My store and I am using the WSE X509
classes to find the certificate in the LocalMachine/My store and add it to
the ClientCertificates collection of the web request. The problem is that I
get an error (System.Net.WebException: The underlying connection was closed:
Could
not establish secure channel for SSL/TLS. --->
System.ComponentModel.Win32Exception: The message received was unexpected or
badly formatted) when making the request unless the certificate ALSO exists
in the CurrentUser/My store. Is having the certificate in the CurrentUser
store a requirement when adding a ClientCertificate to an HttpWebRequest? If
so, how can I work around this? I do not want to have to import the
certificate into each user's certificate store. The client I am testing is a
Console application and I am currently running it with Administrative
privileges so this is not a Permissions issue accessing the certificate in
the Local Machine store.
Thanks in advance for any info on this and let me know if this question is
better suited to a different group.
Thanks
Joe
- Previous message: Joe Kaplan \(MVP - ADSI\): "Re: windows NTLM authentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|