简体   繁体   English

自签名密钥证书

[英]Self signed key certificate

I'm trying to figure out how to create an X.509 certificate containing a self-signed DSA public key (SSK) in C#. 我试图弄清楚如何在C#中创建包含自签名DSA公钥(SSK)的X.509证书。

Having given up on the native C# crypto library which doesn't seem to allow this, I've been looking at the Bouncy Castle library. 放弃了原本的C#crypto库,似乎不允许这样,我一直在看Bouncy Castle库。

However despite a description to the contrary, the download doesn't contain any docs. 然而,尽管有相反的描述,但下载不包含任何文档。

I have been wading through the library classes but there are a lot! 我一直在浏览图书馆课程,但有很多!

I just need to generate a random key pair, sign them and save them in a certificate file. 我只需要生成一个随机密钥对,签名并将它们保存在证书文件中。

Has anyone done this and are you able to point me to a good example, or even maybe supply an example? 有没有人这样做,你能指出一个很好的例子,甚至可能提供一个例子吗?

Thanks for your help! 谢谢你的帮助!

We successfully did this a while back (but ended up needing to use "non self signed certificates") We based our implementation on the following example from Doug E. Cook. 我们成功地做了一段时间(但最终需要使用“非自签名证书”)我们的实现基于Doug E. Cook的以下示例。 http://blogs.msdn.com/b/dcook/archive/2008/11/25/creating-a-self-signed-certificate-in-c.aspx?PageIndex=2 http://blogs.msdn.com/b/dcook/archive/2008/11/25/creating-a-self-signed-certificate-in-c.aspx?PageIndex=2

I've been generating self signed RSA certificates with Bouncy castle, this should let you start your own experiments: 我一直在用Bouncy城​​堡生成自签名的RSA证书,这应该让你开始自己的实验:

http://www.wiktorzychla.com/2012/12/how-to-create-x509certificate2.html http://www.wiktorzychla.com/2012/12/how-to-create-x509certificate2.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM