• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
PowerCoder
博客园    首页    新随笔    联系   管理    订阅  订阅

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

 

posted @ 2019-03-15 18:59  PowerCoder  阅读(2135)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3