Generating X509 Certificate using Bouncy Castle Java(使用 Bouncy Castle Java 生成 X509 证书)
问题描述
我正在寻找在 Java 中使用 BC 生成 X509 证书的示例或教程.
I am looking for an example or tutorial to generate X509 Certificates using BC in Java.
很多示例都有/使用已弃用的 API.我看了一下 BC,但它没有显示哪个类做了什么或没有正确的文档/示例.
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.
如果您对此有所了解,请指点我一个教程,我可以在其中使用 BC 生成 X509 证书.[生成并写入文件的公钥和私钥]
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]
推荐答案
X509v3CertificateBuilder 似乎是要使用的类.bouncycastle wiki.
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 证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 Bouncy Castle Java 生成 X509 证书
基础教程推荐
- Maven:无效的目标版本:10 2022-01-01
- 控制台应用程序中的 Java 键盘输入解析 2022-01-01
- 将 Windows 证书导入 Java 2022-01-01
- doFilter()是在servlet的工作完成之前还是之后执行的? 2022-01-01
- 如何在相机中应用自定义滤镜 [Surfaceview 预览]. 2022-01-01
- Java ECDSAwithSHA256 签名长度不一致 2022-01-01
- JPA惰性列表上的流 2022-01-01
- 在springboot中如何给mybatis加拦截器 2023-04-29
- 在java中使用xpath和selenium解析HTML表格数据 2022-01-01
- 将 double 转换为 Int,向下舍入 2022-01-01
