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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 09:48:50  来源:igfitidea点击:

How to create a self-signed certificate with .pfx and .cer files?

windowsiiscertificateself-signed

提问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 中创建自签名证书后:

  1. Select your certificate in IIS under Server Certificates.
  2. Click on View.
  3. Select the Detail tab.
  4. Click the "Copy to File" button.
  5. Follow instructions in Certificate Export Wizard to create an X.509 (.CER) certificate.
  1. 在 IIS 中的服务器证书下选择您的证书。
  2. 单击查看。
  3. 选择详细信息选项卡。
  4. 单击“复制到文件”按钮。
  5. 按照证书导出向导中的说明创建 X.509 (.CER) 证书。