C#证书生成框架框架、证书

2023-09-03 17:47:31 作者:對你朝思暮想

有谁知道一个C#框架,可以生成公钥/私钥,X.509证书和签名这些证书?

Does anyone know a C# framework that can generate public/private keys, X.509 certificates and sign those certificates?

推荐答案

BouncyCastleCrypto,疯狂的名称是的,我是pretty的肯定拥有所有这些功能。几乎所有的RFC标准的贯彻落实。当我几年前用它这是记录不完整,但单元测试是非常透彻,以至于你可以搜索周围的某些关键字,如509,发现正在行使框架的一部分,单元测试你所需要的。

BouncyCastleCrypto, as crazy of a name it is, I am pretty sure has all of these capabilities. Just about all of the RFC standards are implemented. When I used it a few years ago it was poorly documented, but the unit testing was very thorough, so much so that you could search around for certain key words like "509" and find unit tests that are exercising the part of the framework that you need.

我真的发现我不得不很详细阅读一些RFC标准,以了解如何使用该框架。他们真的没有把任何努力来使事情变得简单,只要cert.Sign(键)。相反,它是非常精细的,你必须创建半打对象,并确切地知道如何把它们放在一起,以完成某项工作。然而,这为您提供了全面的灵活性和力量,你应该知道如何执掌权力。

I really found that I had to read through in great detail some of the RFC standards in order to understand how to use the framework. They really didn't put any effort into making things as simple as "cert.Sign(key)". Instead it is very granular, and you have to create half a dozen objects and know exactly how to put them together in order to get something done. This however, gives you complete flexibility and power, should you know how to wield that power.

我个人用它来装载X.509证书,执行不同的密钥生成任务,数字签名/验证,自签约,等等,但我早已忘记这一切,所以没有太大的帮助比一个自信等,它可以进行。

I personally used it to load X.509 certificates, perform various key generation tasks, digital signing/verification, self signing, etc. but I have long forgotten all of it, so not much help other than a confident, it can be done.