SSL证书未安装 [英] SSL certificate is not installing

查看:195
本文介绍了SSL证书未安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IIS中安装SSL证书时遇到问题,以下是从我的CA获得证书之前的步骤。

I'm facing an issue in installing SSL certificate in IIS and below are the step before I got the certificate from my CA.


  1. 使用OpenSSL生成私钥文件:openssl genrsa -out key_name.key 2048命令。

生成的.csr文件包含: openssl req -out CSR.csr -key key_name.key -new -sha256 命令。

Generated .csr file with: "openssl req -out CSR.csr -key key_name.key -new -sha256" command.

生成CSR文件后,我向CA提供了相同的CSR文件以获取证书。

Once I generated the CSR file, I provided the same CSR file to CA to get me certificate.

我获得了.p7b格式的证书,我转换为.cer格式。

I got the certificate in .p7b format, which I converted to .cer format.

使用IIS中的完整证书申请选项安装证书。

Installed certificate using "Complete certificate request" option in IIS.

现在问题是刷新后新安装的证书从IIS消失了。我用Google搜索了这个问题,并了解到这一点,因为没有与证书关联的私钥。我的问题是私钥已经去了哪里?我在步骤1中使用私钥创建了CSR。其次,我如何解决这个问题,无论如何我必须安装证书。请帮忙。

Now the problem is that newly installed certificate vanishes from IIS after a refresh. I Googled this issue and understood that, it's happening so because there is no private key associated with certificate. My question is where the private key has gone?? I had created the CSR using the private key in step 1. Secondly, how do I over come this issue, I have to install the certificate anyhow. Please help.

推荐答案

您没有通过IIS管理器生成证书请求。因此,您不应使用IIS来完成请求。

You did not generate the certificate request via IIS Manager. Thus, you should not use IIS to complete the request.

相反,您需要使用OpenSSL生成PFX文件,

Instead, you need to use OpenSSL to generate a PFX file,

从.cer和.pem文件创建一个pfx文件

然后你可以将它导入IIS。

Then you can import it to IIS.

你可能会阅读这篇文章了解更多细节,

You might read this post for more details,

https://blog.lextudio.com/2015/06/the-whole-story-of-server-certificate-disappears -in-iis-77-588-510-0-after-installed-it-why /

这篇关于SSL证书未安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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