如何创建一个自签名证书与私钥在文件中一个简单的步骤? [英] How to create a self signed certificate with the private key inside in a file in one simple step?

查看:444
本文介绍了如何创建一个自签名证书与私钥在文件中一个简单的步骤?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为开发目的生成证书,但我不想在商店中安装证书。



如果您指定了输出文件,则 $ b

当我试图通过导出用 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

此处


I'd like to generate a certificate for development purposes, but I don't want to install the certificate in the store.

makecert with the switch -pe doesn't create the private key if you specify an output file.

When I tried to create a .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...

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?

解决方案

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

from here.

这篇关于如何创建一个自签名证书与私钥在文件中一个简单的步骤?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆