Do not assume the first certificate of a PKCS12 file is the one matching the key...
commit69d82906cb2eca075ea97d32ec775634adf474f8
authorSebastien Pouliot <sebastien@xamarin.com>
Wed, 18 Dec 2013 19:20:38 +0000 (18 14:20 -0500)
committerSebastien Pouliot <sebastien@xamarin.com>
Wed, 18 Dec 2013 19:21:23 +0000 (18 14:21 -0500)
tree1d1326d8853cd065735e6bed1c9c9caa88d0fd39
parent4ec15d96274ccf65728e1bf167ab453213d20c3d
Do not assume the first certificate of a PKCS12 file is the one matching the key (even if it's the most common way). ref: desk #54722
mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs
mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Certificate20.cs