问题
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
回答1:
In Java, java.security.cert.CertificateFactory.
"A certificate factory for X.509 must return certificates that are an instance of java.security.cert.X509Certificate"
回答2:
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.)
回答3:
Java doesn't need crypto libraries, it ships with that functionality already. In particular, java.security.cert.X509Certificate.
回答4:
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...
来源:https://stackoverflow.com/questions/143523/x509-certificate-parsing-libraries-for-java