使用Bouncycastle生成数字证书 [英] Generating digital certificates using Bouncycastle

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

问题描述

我已经确定,经过一些研究,为了生成和签署证书以编程方式在java我需要bouncycastle库。

I have determined, after some research, that in order to generate and sign certificates programmatically in java I need the bouncycastle library.

不幸的是,最近经历了一次大修。现在已经弃用了大量的课程,所有的教程和代码示例都很简单,我们可以发现这些教程和代码示例已经过时了。

Unfortunately it appears that the library has gone through a major overhaul sometime fairly recently. A great deal of their classes are now deprecated and all of the tutorials and code samples I can find that are simple enough to understand are deprecated along with them.

新加密。只有基本的知识和我实际想要完成的模糊的想法,我已经摸索了过时的教程和假设知识Bouncycastle文档,它是一个艰苦的经验。

I am reasonably new to cryptography. Armed with only basic knowledge and fuzzy idea of what I'm actually trying to accomplish, I've fumbled through the out of date tutorials and the assumed-knowledge Bouncycastle documentation, and its been an arduous experience.

有什么简单的理解,最新的Bouncycastle教程或替代库我应该看看吗?

Are there any simple to understand, up to date Bouncycastle tutorials, or alternative libraries I should look at? Or should I grit my teeth, ignore the deprecation warnings and hope for the best?

推荐答案

这是一个很难找到,但 bouncycastle wiki 有一些简短但有趣的文字。特别是在此页的第一个示例,名为

It is a little hard to find, but the bouncycastle wiki has some short but sweet documention. In particular this first example at this page entitled A Simple Operator Example should get you started.

另一个完美的选择是只使用库的1.46版本,最后一个版本使用旧的api。

Another perfectly fine alternative is to just use version 1.46 of the library, the last version to use the old api.

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

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