Read alias from certificate

I want to write code that reads Username from other names under the name Alternative name from certificate.

I have X509 certification.

I did (certificate - X509Certificate object):

Collection san = certificate.getSubjectAlternativeNames()

      

How can I get the UPN?

Thank!

+2


source to share


1 answer


+3


source







All Articles