views:

1298

answers:

4

Hi!

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

+4  A: 

In Java, java.security.cert.CertificateFactory.

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

Steve Jessop
A: 

Java doesn't need crypto libraries, it ships with that functionality already. In particular, java.security.cert.X509Certificate.

skaffman
A: 

You might also have a look at Keyczar, developed by google. This library tries to make security as simple as possible and might be easier to use than the standard java libraries...

bombadil
I don't see x509 support in that API.
jsight
+4  A: 

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.)

erickson