如何创建一个自签名证书与私钥在文件中一个简单的步骤? [英] How to create a self signed certificate with the private key inside in a file in one simple step?
问题描述
我想为开发目的生成证书,但我不想在商店中安装证书。
当我试图通过导出用 为什么在地狱是如此复杂?你知道一个简单的工具,在一个简单的步骤中,在没有密码的文件中创建一个带有私钥的证书。 从此处。 I'd like to generate a certificate for development purposes, but I don't want to install the certificate in the store. When I tried to create a Why in the hell is it so complicated? Do you know a simple tool to create a certificate with private key inside a file without password in one simple step? from here. 这篇关于如何创建一个自签名证书与私钥在文件中一个简单的步骤?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!如果您指定了输出文件,则
makecert
创建的证书来创建一个 .pfx
用于保护私钥的密码;我想我不能使用它与我的WCF服务,因为配置文件没有关于密码的信息...
makecert -r -pe -nCN = CompanyXYZ Server-b 01/01/2007 -e 01/01/2010 -sky exchange Server.cer -sv Server.pvk
pvk2pfx .exe -pvk Server.pvk -spc Server.cer -pfx Server.pfx
makecert
with the switch -pe
doesn't create the private key if you specify an output file..pfx
file by exporting the certificate created with makecert
, it asks for a password to protect the private key; I guess I can't use it with my WCF service since the config file has no information about the password...makecert -r -pe -n "CN=CompanyXYZ Server" -b 01/01/2007 -e 01/01/2010 -sky exchange Server.cer -sv Server.pvk
pvk2pfx.exe -pvk Server.pvk -spc Server.cer -pfx Server.pfx