x509 certificate parsing libraries for Java

风流意气都作罢 提交于 2019-12-20 03:04:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!