使用 Bouncy Castle Java 生成 X509 证书

Generating X509 Certificate using Bouncy Castle Java(使用 Bouncy Castle Java 生成 X509 证书)
本文介绍了使用 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 证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)