>On Mon, 2007-03-12 at 17:46 +0100, Michal Ziemski wrote:>> Hi!>> >> Does 
>HttpWebRequest support client certificates in mono?>> Th FAQ >> 
>(http://www.mono-project.com/FAQ:_Security#Are_SSL_client_certificates_supported_.3F)>>
> states it doesn't in 1.1, but might in 2.0>> >> Does it work in 2.0?>>There 
>as been progress, both for the new X509Certificate2 and X509Store>classes, but 
>the HttpWebRequest code hasn't yet been updated. This part>is somewhat 
>interlocked with the new SslStream class (2.0) and how we'll>provide it. 
>>>However at this stage it may be possible to make a quick hack to 
>add>client-side certificate support for *some* 2.0 apps (depending on how>the 
>certificate is loaded).>>> >> Cheers!>> Michal Ziemski>> 
 
Hi everybody,
 
I am working on a C# mono application that needs client certificates to call a 
webservice.Sebastien, can you explain a bit what sort of "quick hack" it may be 
possible to make, tomake this following test code work ?
 
 static void Main(string[] args) {    // Instanciate webservice client    
WSAddition.Addition client = new testWsSSL.WSAddition.Addition();    
X509Certificate2 Cert = new X509Certificate2("/my/clientCertificate.p12", 
"password");    client.ClientCertificates.Add(Cert);     // Call webservice 
method    int result = client.add(5,6);    Console.WriteLine("Result : " + 
result); }
Does it require to hack the HttpWebRequest class ?
 
Cheers,
Samuel
 
_________________________________________________________________
Essayez Live.com, votre nouvelle page d'accueil ! Personnalisez-la en quelques 
clics pour retrouver tout ce qui vous intéresse au même endroit.
http://www.live.com/getstarted
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to