Add name of corrupted certificate to CryptographicException on Mac
* Add name of corrupted certificate to CryptographicException on Mac
When trying to create a CertificateData out of raw X509 byte array it might throw if the data is corrupted. The existing exception message does not provide any information which might help the user identify the corrupted certificate and fix it.
This change, makes a native call to SecCertificateCopySubjectSummary which will provide a human readable summary of the certificate, and will generate an exception message using this string.
Co-authored-by: NJeremy Barton <jbarton@microsoft.com>
Showing
想要评论请 注册 或 登录