使用Bouncy Castle Java生成X509证书 [英] Generating X509 Certificate using Bouncy Castle Java

查看:455
本文介绍了使用Bouncy Castle Java生成X509证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个在Java中使用BC生成X509证书的示例或教程。



很多例子都是使用过时的API。我看了BC,但它不显示哪个类做什么或没有正确的文档/示例。



请如果你有任何一个想法,请指点我的教程,我可以使用BC生成X509证书。 [生成和写入文件的公钥和私钥]

解决方案

X509v3CertificateBuilder 看起来像是要使用的类。在 bouncycastle wiki 上有一些使用新API的示例。 p>

I am looking for an example or tutorial to generate X509 Certificates using BC in Java.

A lot of example are having/using deprecated API. I gave a look at BC, but it doesn't show which class does what or no proper documentation/example.

Please If any one you are having idea about it, please point me to a tutorial where I can use BC to generate X509 Certificates. [Generation and writing the public and private keys to files]

解决方案

The X509v3CertificateBuilder seems like the class to use. There are some examples of using the new API on the bouncycastle wiki.

这篇关于使用Bouncy Castle Java生成X509证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆