[Mono-list] Certificate validation in HttpWebRequest
Mat Arge
argemat1010 at gmail.com
Fri Mar 21 13:22:12 UTC 2014
Hy!
I do access some websites on HTTPS URLs using the HttpWebRequest class. To
handle the certificates I set the
System.Net.ServicePointManager.ServerCertificateValidationCallback to an
implementation of mine. This worked fine, but recently (to be precise: since
updating from mono-2.10 to 3.2.8) I get the old "System.Net.WebException:
Error getting response stream (Write: The authentication or decryption has
failed.)" error again. My callback is actually never called.
I found a hint on a MS page
(http://social.msdn.microsoft.com/Forums/windowsapps/en-US/f5821194-4c40-48e7-976c-3dec8864ac59/servicepointmanagerservercertificatevalidationcallback?forum=winappswithcsharp)
that appearently this is expected behaviour for Windows RT and Windows Store
apps.
Has the behaviour of that callback been altered in mono? Is that a bug?
cheers
Mat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 665 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20140321/485eaf07/attachment.pgp>
More information about the Mono-list
mailing list