Use X509 serial number in Mono cert store filename
authorJo Shields <jo.shields@xamarin.com>
Fri, 12 Feb 2016 16:03:46 +0000 (16:03 +0000)
committerJo Shields <jo.shields@xamarin.com>
Fri, 12 Feb 2016 16:03:46 +0000 (16:03 +0000)
commit1c621b0e33bff04505fb1108b26c718992358919
tree5da50dda52959c664916ac91da9f9301b06d8808
parent7751c24771cac161274e208cf9562b0aa5520b9d
Use X509 serial number in Mono cert store filename

The Mono cert store traditionally uses the SKI for the filename of a certificate, but this does not handle cases where a cert has been reissued with the same SKI but different serial (seen in the wild with StartCom certs). This patch appends the serial to all new imported certs, and attempts to interoperate cleanly with existing serial-less certificate stores to avoid duplication.

Closes: #30902
mcs/class/Mono.Security/Mono.Security.X509/X509Store.cs