問題描述
我正在尋找在 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 證書的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!