IIS计算机重新启动后会失去HTTPS证书Endpoitn

IIS计算机重新启动后会失去HTTPS证书Endpoitn

本文介绍了IIS计算机重新启动后会失去HTTPS证书Endpoitn的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我不是谁正在失去计算机重新启动后的证书协会之一。
特别是:

I know I am not the one who is losing a certificate association after computer restart.In particular:


  • 开启网站Bindind在IIS对话框

  • 找到我的HTTPS绑定

  • preSS编辑...

  • 从SSL证书我选择我的certifivate

  • preSS应用
  • Open "Site Bindind" dialog in IIS
  • Find my HTTPS binding
  • Press "Edit..."
  • From the "SSL certificate" I am selecting my certifivate
  • Press Apply

一切工作只是完美的,但直到重新启动计算机。
重启后,当我打开绑定属性我看到(未选择)

Everything works just perfect, but until the computer restarts.After the restart when I open the Binding properties I see (Not selected)

我发现,在

netsh http show sslcert

我看不到我的口,我使用HTTPS结合

I cannot see my port I am using for HTTPS binding

当我
netsh的HTTP添加的sslcert ipport = 0.0.0.0:端口CERTHASH = = APPID {ID}

when I amnetsh http add sslcert ipport=0.0.0.0:port certhash= appid={ID}

一切工作进一步

为SA快,但肮脏的解决方案我已经创建了以下内容的批处理文件:

As sa fast but dirty solution I have created a bat file with the following content:

netsh http del sslcert ipport=0.0.0.0:port
netsh http add sslcert ipport=0.0.0.0:port certhash=<Hash> appid={ID}

和预定推出的Windows计划蝙蝠文件(在第1分钟后启动)
工作了一段时间,但现在已经停止了。

and scheduled launch of the bat file in Windows Scheduler (At start up after 1 minutes)worked for some time, but now has stopped.

什么是错的怎么办啊?

推荐答案

我只是有类似的问题,在这里我对我的自我托管OWIN应用SSL绑定每当我重新启动机器丢失了。

I just had a similar problem, where my SSL bindings for my self-hosted OWIN app were lost whenever I restarted the machine.

我碰到这个职位:Adding SSL证书通过&QUOT; netsh.exe中&QUOT;不会持续一台机器重启,其中提到后:

I came across this post: Adding SSL Certificate via "netsh.exe" does not last after a machine restart, which mentions:

我觉得从个人到受信任的根CA目录移动自签名的证书会导致SSL停止工作重新启动开发他们的机器后一个问题。 (不知道怎么回事了,但它始终发生。)我终于得到解决此问题由出口和再进口自签名的证书到受信任的根目录下(而不是简单地将其拖至)。现在我的自签名证书被认为是,我不需要重新安装每次重新启动计算机时/修复IIS防爆preSS。

我的情况有点不同,但是当我输入我的本地主机的SSL证书,我也使用拖放正下降到其从个人证书复制为当前用户的个人证书的本地计算机。 所以我删除了证书,并重新导入,而无需使用拖放正下降,这似乎已处理了它 - !现在我可以重新启动我的机器,而不会失去我的SSL端口绑定

My scenario was a bit different, but when I imported my localhost SSL cert, I was also using drag-n-drop to copy it from the Personal Certificates for "Current User" to the Personal Certificates for "Local Computer." So I deleted my cert and re-imported without using drag-n-drop, and that seems to have handled it - I can now reboot my machine without losing my SSL port bindings!

希望这会为你工作,以及(如果您仍然有问题)。

Hopefully this will work for you as well (if you are still having the issue).

这篇关于IIS计算机重新启动后会失去HTTPS证书Endpoitn的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 10:35