Heath H
Heath H

Reputation: 46

WebClient + SSL exception with Android 4 and Mono for Android

I'm using MfA 4.2.5, and whenever I use System.Net.WebClient to download a string from a SSL URL, I get an error pertaining to the certificate. The certificate appears to be valid, and I get the error on Android 4.0.3 but no error with Android 2.3.

Here's the exception: System.Net.WebException: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: Invalid certificate received from server. Error code: 0xffffffff800b010a

and here's the URL: https://cws.auburn.edu/map/api/2.0/Building

Upvotes: 0

Views: 2781

Answers (1)

sshaw
sshaw

Reputation: 266

This is a known bug in 4.2.5. The suggested workaround until the next version is in this bug report under comment #7

https://bugzilla.xamarin.com/show_bug.cgi?id=6501

Upvotes: 3

Related Questions