IIS导入.pfx证书时报错:"A specified logon session does not exist. It may already have been terminated."...

在IIS中可以直接导入.pfx文件来给站点绑定https协议:

如果在导入.pfx文件时,不选择"Allow this certificate to be exported"的话

那么在绑定IIS站点为https协议时,会报错:"A specified logon session does not exist. It may already have been terminated."

但是如果选择"Allow this certificate to be exported",会产生很大的安全问题,有可能网站绑定的SSL证书会被恶意导出。

 

解决的办法是在windows中运行certlm.msc指令,使用certlm来导入.pfx证书文件,而不是在IIS中直接导入

在certlm的左边树状菜单中,选择Personal->Certificates,然后鼠标右击Certificates节点,进而继续选择All Tasks->Import,然后导入.pfx证书文件

 

这样在绑定IIS站点为https协议时,就可以直接在SSL certificate中选择在certlm中导入的.pfx证书了,而且绑定时也不会报错了

 

 

参考文献:

IIS 7 Error “A specified logon session does not exist. It may already have been terminated.” when using https

 

转载于:https://www.cnblogs.com/OpenCoder/p/10538943.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值