Pass SSL certificate chain, not just collection, to Mono.Android.dll
authorJonathan Pryor <jonpryor@vt.edu>
Mon, 13 Aug 2012 17:44:16 +0000 (13:44 -0400)
committerJonathan Pryor <jonpryor@vt.edu>
Mon, 13 Aug 2012 17:48:16 +0000 (13:48 -0400)
commit3363b136c6afa6de071ee189ceaead49107470d6
tree7290b6fa387aead385e60d58d40b207fbfb41b95
parentac3c8599dfe69360d57b3ab6031238dc2cab7d54
Pass SSL certificate chain, not just collection, to Mono.Android.dll

Fixes BCL half of: https://bugzilla.xamarin.com/show_bug.cgi?id=6501

Today I learned that the SSL certificate collection (as held in
X509CertificateCollection) is a potentially unordered sequence of SSL
certificates, which not all versions of Android will validate.

The fix is to use the properly ordered SSL certificate chain (as held
in X509Chain), and have Android validate that.
mcs/class/System/System.Net/ServicePointManager.cs
mcs/class/System/System/AndroidPlatform.cs [new file with mode: 0644]
mcs/class/System/monodroid_System.dll.sources