AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1060794
Accepted
Adam
Adam
Asked: 2021-04-19 23:33:49 +0800 CST2021-04-19 23:33:49 +0800 CST 2021-04-19 23:33:49 +0800 CST

IIS:可以通过 http 但不能通过 https 连接到网站

  • 772

我可以通过 http 连接到我的网站,但不能通过 https。

在 Firefox 中,我得到:

安全连接失败。连接到www.example.com时出错。PR_CONNECT_RESET_ERROR

在 Chrome 中我得到了

无法访问此站点连接已重置。

奇怪的是,这个 Let's Encrypt 证书曾经可以工作(我试图弄清楚我所做的更改可能会影响到这一点): 在此处输入图像描述

IIS 中的绑定设置为使用正确的证书: 在此处输入图像描述 在此处输入图像描述

注册表项(我还为 TLS 1.1 设置了 DisabledByDefault=1): 在此处输入图像描述

netsh http show sslcert输出:

Hostname:port                : www.example.com:443
Certificate Hash             : cdd3c28a460bdf024930a5e1a7fcc799fb9ea72e
Application ID               : {4dc3e182-e14b-4a21-b022-59fc669b0914}
Certificate Store Name       : WebHosting
Verify Client Certificate Revocation : Enabled
Verify Revocation Using Cached Client Certificate Only : Disabled
Usage Check                  : Enabled
Revocation Freshness Time    : 0
URL Retrieval Timeout        : 0
Ctl Identifier               : (null)
Ctl Store Name               : (null)
DS Mapper Usage              : Disabled
Negotiate Client Certificate : Disabled
Reject Connections           : Disabled
Disable HTTP2                : Not Set
Disable QUIC                 : Not Set
Disable TLS1.2               : Not Set
Disable TLS1.3               : Not Set
Disable OCSP Stapling        : Not Set
Disable Legacy TLS Versions  : Not Set

Hostname:port                : example.com:443
Certificate Hash             : cdd3c28a460bdf024930a5e1a7fcc799fb9ea72e
Application ID               : {4dc3e182-e14b-4a21-b022-59fc669b0914}
Certificate Store Name       : WebHosting
Verify Client Certificate Revocation : Enabled
Verify Revocation Using Cached Client Certificate Only : Disabled
Usage Check                  : Enabled
Revocation Freshness Time    : 0
URL Retrieval Timeout        : 0
Ctl Identifier               : (null)
Ctl Store Name               : (null)
DS Mapper Usage              : Disabled
Negotiate Client Certificate : Disabled
Reject Connections           : Disabled
Disable HTTP2                : Not Set
Disable QUIC                 : Not Set
Disable TLS1.2               : Not Set
Disable TLS1.3               : Not Set
Disable OCSP Stapling        : Not Set
Disable Legacy TLS Versions  : Not Set

不确定是否相关,但是当我通过 SSL Labs 测试我的网站时,我得到了 A+。

我已经看过这里: Installed SSL for domain, now getting connection reset error

更新 1
我为我的网站启用了 SSL(并重新启动): 在此处输入图像描述

iis ssl https windows-server-2019 lets-encrypt
  • 3 3 个回答
  • 3843 Views

3 个回答

  • Voted
  1. Best Answer
    Adam
    2021-04-21T00:53:41+08:002021-04-21T00:53:41+08:00

    这是因为我在注册表中添加了密钥“TLS 1.3”

    计算机\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\

    删除该密钥时,一切都会再次起作用。

    • 1
  2. r3d
    2021-04-20T00:45:27+08:002021-04-20T00:45:27+08:00

    PR_CONNECT_RESET_ERROR 表示目标服务器或沿途的服务器/路由器/中间人向 Firefox 发送了 RST 以终止尝试的连接。

    您在 IIS 中接受 SSL 了吗?您可以按照以下步骤进行操作: 在中心面板的主页中,在 IIS 下,双击 SSL 设置。

    然后在 SSL 设置页面:

    选中需要 SSL 复选框。

    在客户端证书下,选择接受。

    重新启动您的网站。

    • 0
  3. user241093
    2022-06-18T08:23:08+08:002022-06-18T08:23:08+08:00

    我知道这是一个老问题,但我今天遇到了同样的问题。

    以下为我解决了它:

    1. 将 IIS 绑定中的证书切换到另一个证书
    2. 切换回旧证书。

    我不知道为什么,但它有帮助。

    • 0

相关问题

  • 2003 Server企业版不能运行ASP.NET应用程序?

  • 启用集成 Windows 身份验证时,ASP(经典)在哪个帐户下运行?

  • 是否有一种简单的方法可以生成有关 IIS 中“死”文件的报告?

  • IIS 7 中的 URL 重写

  • 对于 ASP.Net 应用程序,Windows 64 位相对于 32 位的主要优势是什么?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve