windows 如何使用 .pfx 和 .cer 文件创建自签名证书?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12006777/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to create a self-signed certificate with .pfx and .cer files?
提问by The Light
In IIS 7.5 Windows Server 2008, How to create a self-signed certificate with .pfx (containing the private key) and .cer (containing the public key) files?
在 IIS 7.5 Windows Server 2008 中,如何使用 .pfx(包含私钥)和 .cer(包含公钥)文件创建自签名证书?
I used this guideline: http://technet.microsoft.com/en-us/library/cc753127(v=ws.10).aspx
我使用了这个指南:http: //technet.microsoft.com/en-us/library/cc753127(v=ws.10).aspx
and I created the certificate in IIS. When I export it, it only exports the .pfx file, not the .cer file.
我在 IIS 中创建了证书。当我导出它时,它只导出 .pfx 文件,而不是 .cer 文件。
Thanks,
谢谢,
回答by Asencion
Once the self-signed certificate is created in IIS:
在 IIS 中创建自签名证书后:
- Select your certificate in IIS under Server Certificates.
- Click on View.
- Select the Detail tab.
- Click the "Copy to File" button.
- Follow instructions in Certificate Export Wizard to create an X.509 (.CER) certificate.
- 在 IIS 中的服务器证书下选择您的证书。
- 单击查看。
- 选择详细信息选项卡。
- 单击“复制到文件”按钮。
- 按照证书导出向导中的说明创建 X.509 (.CER) 证书。