Thank you, Peter - this is enough to give me stuff to research for the next
couple of days.

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] Behalf Of Peter Ritchie
Sent: Monday, July 09, 2007 1:24 PM
To: [email protected]
Subject: Re: [ADVANCED-DOTNET] Accessing files over HTTPS -> for Peter
Ritchie


Hi Eddie, I haven't done it; but (if you want to use WebClient) I believe
you'll have to specialize WebClient and override the GetWebRequest
method.  If you've got an http[s] URL, the default should create an
HttpWebRequest object (you'll have to cast from the WebRequest return from
the base, i.e. call the base first), and HttpWebRequest has a
ClientCertificates collection property.  You can add a
X509Certificate/X509Certificate2 object to this collection.
X509Certificate has lots of ways to load from file; or you can enumerate
those stored in a store via the X509Store class[1].

Let us know how that works out.

[1] http://msdn2.microsoft.com/en-
us/library/system.security.cryptography.x509certificates.x509certificate2co
llection(VS.80).aspx

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to