Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

X509 encoded certificate - is it really ASN.1?

918776Mar 14 2012 — edited Mar 16 2012
I can get a good Certificate from encoded bytes bcert

ByteArrayInputStream bis = new ByteArrayInputStream(bcert);
CertificateFactory cf = CertificateFactory.getInstance("X.509");
X509Certificate cert = (X509Certificate)cf.generateCertificate(bis);

my question: is an encoded certificate (eg bcert) a good ASN.1 ?

I cant DeCode with marben nor with codec.sourceforge

Am I wasting my time looking for an ASN.1 decoder? anyway java decodes the bytes to a certificate just fine.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 13 2012
Added on Mar 14 2012
4 comments
808 views