How can I read X509 Subject Alternative Name from .NET
Recently a site I shoot up some data to moved to a CDN and now their SSL
certificate Subject, instead of site name, contains generic
'sslserver43552' info. Their domain name now exists under "Subject
Alternative Name" (among other things).
So previously I had
ServicePointManager.ServerCertificateValidationCallback = ((sender1, cert,
chain, errors) => Cert.Subject.Contains("blah"));
Ideally I'd like to replace Subject with SubjectAlternativeName in above
code. How do I do it?
No comments:
Post a Comment