I have a web page where I show the details of the SSL certificate that is used with the server. I thought toString () might be fine, but it looks like this:
[0] Version: 3 SerialNumber: 117262955582477610212812061435665386300 IssuerDN: CN=localhost Start Date: Wed Jun 13 15:15:05 EST 2012 Final Date: Tue Jun 08 15:15:05 EST 2032 SubjectDN: CN=localhost Public Key: DSA Public Key y: 6ef96c2ace616280c5453dda2[TRUNCATED BY ME] Signature Algorithm: SHA1withDSA Signature: 302c021450b1557d879a25ccf6b89e7ac6de8dc6 0b13df7e0214559cdc810cdb1faa3a645da837cd 5efdeb81d62e Extensions: critical(true) 2.5.29.17 value = DER Sequence Tagged [7] IMPLICIT DER Octet String[4]
The problem I am facing is an unclear view of the extensions. I would prefer to see "subjectAltNames" and a list of alternative names, for example, what I see in my web browser when I look at the certificate information.
Is there any way to do this? I have the whole BouncyCastle in my class path, so I was hoping I could find it there, but it seems I can't find it.
The worst comes to the worst, I know that I can put the time into assembling all the pieces and parts, but I do not know if I will miss the extension that anyone can expect there.
source share