English 中文(简体)
使用证书颁发机构以编程方式创建证书
原标题:creating certificate programmatically using cert authority

我公司的一台运行Windows2000的服务器正在托管一个证书颁发机构(基于微软)。当我打开web浏览器并键入http://server_name/certsrv,我得到了一个页面(标题为“Microsoft证书服务”),它允许我创建到此CA的证书请求,并获取证书,然后安装在本地PC的证书存储中。

我希望使用C#以编程方式实现这一点,因为我需要生成大量证书。

我不知道我在寻找什么API。

任何建议都会有帮助。

提前感谢,

Subbu

最佳回答

正如您已经发现的,根据您最近的问题判断,您可以使用标准.NET框架中的System.Security.CryptographySystem.Security.CCryptography.X509Certificate命名空间,也可以使用开源的Bouncy Castle库。这些是您正在寻找的API。或者,您可以使用OpenSSL并从.NET代码中调用它,但我会坚持使用纯.NET解决方案。

问题回答

你能提供更多关于你的要求的信息吗?

比如:私钥将在哪里生成?您将使用来自远程主机的CSR吗?您想要什么样的输出:

例如,你会生成同时包含私有和公共部分的PKCS12文件,还是只输出公共并在其他地方保存私有?





相关问题
IerfiticatePolicy and ServicePoint

因此,使用“工资计划”二字。 它们要求较大的公司发出X509Certificate,同时提出SOAP的每一份意向书。 我从未听说过使用ert子,它总是只是寄送APICA签名......。

How do I create a PKCS12 .p12 file in C#?

this is probably a n00b question, but I don t really have any experience in this area. I need to create a p12 bundle containing an X509 certificate and the private key. I currently have two objects,...

How can I figure out an unknown error in an X509Chain?

I ve got a program that calls web services at customer sites, and since the web service is provided by a third party it requires SSL and I can t do anything about it. In most cases when there is an ...

X509 Certificates, DigitalSignature vs NonRepudiation (C#)

We have been handed a set of test sertificates on smart cards for developing a solution that requires XML messages to be signed using PKI. Each (physical) smart card seems to have two certificates ...

Consume a webservice - WS Security

I am about to develop a windows applikation which need to communicate with an Axis2 webservice using Web Service Security - all the documentation says is, that the SOAP security communication is ...

热门标签