Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

x509 certificate parsing libraries for Java

Any recommended crypto libraries for Java. What I need is the ability to parse X.509 Certificates to extract the information contained in them.

Thanks

like image 729
JJarava Avatar asked Sep 03 '25 09:09

JJarava


2 Answers

There's a lot more in most certificates than what's handled by java.security.cert.X509Certificate. If you need to parse extension values, check out the Bouncy Castle Crypto API. (C# version is offered too.)

like image 62
erickson Avatar answered Sep 04 '25 22:09

erickson


In Java, java.security.cert.CertificateFactory.

"A certificate factory for X.509 must return certificates that are an instance of java.security.cert.X509Certificate"

like image 21
Steve Jessop Avatar answered Sep 05 '25 00:09

Steve Jessop