How to programmatically create an X.509 certificate in .NET?

 ̄綄美尐妖づ 提交于 2019-12-03 09:49:29

问题


I'd like to create a new X.509 certificate in .NET, that meet the hash algorithm and key length requirements that I set. This will be a self-signed certificate. Creating a new certificate may create a new key, or perhaps I'd like to import an existing private key that I have in byte[] form.

Does anyone know how to do it?


回答1:


Maybe this post can be helpful. I use this code in our test environment to create self signed certificates.

Best




回答2:


One of the options is to use PKIBlackbox package of our SecureBlackbox product. PKIBlackbox lets you create certificate requests, create new certificates and issue and re-issue certificates using existing keys.



来源:https://stackoverflow.com/questions/3736568/how-to-programmatically-create-an-x-509-certificate-in-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!