如何在 Java 中创建 PKI

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4219197/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 05:22:15  来源:igfitidea点击:

How to create a PKI in Java

javasecurityencryptioncryptographypki

提问by user512673

I want create certificates to be stored on a database and i dont have any idea about how to do it, if exits an API or library help me do it Thanks

我想创建要存储在数据库中的证书,但我不知道该怎么做,如果存在 API 或库,请帮我做,谢谢

回答by rook

A public key infrastructure is far more than a database of signed public keys. For instance one of the most important parts of the PKI is the ability to revoke certificates using the OCSP protocol.

公钥基础设施远不止是签名公钥的数据库。例如,PKI 最重要的部分之一是能够使用 OCSP 协议撤销证书。

In short everything needed to build a PKI in java has been built for you and is open source, you should use EJBCA.

简而言之,在 java 中构建 PKI 所需的一切都已为您构建并且是开源的,您应该使用EJBCA

回答by Cosmin Cojocar

Here is the Java PKI programming guidefrom Sun.

这是Sun的Java PKI 编程指南