简体   繁体   English

整个网络的 ERR_SSL_PROTOCOL_ERROR 问题

[英]ERR_SSL_PROTOCOL_ERROR issue across whole network

We were setting up SSL for the website rskolkata.com.我们正在为网站 rskolkata.com 设置 SSL。 We first set up Cloudflare for the site.我们首先为该站点设置了 Cloudflare。 Everything was okay in Cloudflare site including DNS server settings. Cloudflare 站点中的一切都很好,包括 DNS 服务器设置。 However, something happened which corrupted SSL certificates across the whole network.但是,发生了一些事情,破坏了整个网络的 SSL 证书。 We tried to access the website in ubuntu 20.10 and windows 10 in all the machines in the network in all the browsers (Chrome, Mozilla, Opera) in both normal mode and incognito mode.我们尝试在所有浏览器(Chrome、Mozilla、Opera)的正常模式和隐身模式下,在网络中的所有机器上访问 ubuntu 20.10 和 windows 10 中的网站。 We always get the error ERR_SSL_PROTOCOL_ERROR in Chrome and in Mozilla, the error is SSL_ERROR_INTERNAL_ERROR_ALERT .我们总是在 Chrome 和 Mozilla 中收到错误ERR_SSL_PROTOCOL_ERROR ,错误是SSL_ERROR_INTERNAL_ERROR_ALERT We tried the following command in Ubuntu:我们在 Ubuntu 中尝试了以下命令:

sudo apt-get install --reinstall ca-certificates

This worked on a machine (say machine A) outside the affected network (but the same machine which was initially in the corrupted network).这适用于受影响网络之外的机器(例如机器 A)(但最初位于损坏网络中的同一台机器)。 When we tried the same command on the Ubuntu machines on the affected network it did not work.当我们在受影响网络上的 Ubuntu 机器上尝试相同的命令时,它不起作用。 We also tried to clear the SSL state in Chrome on Windows machine which did not work.我们还尝试在 Windows 机器上的 Chrome 中清除 SSL state,但该机器不起作用。 Then we tried the following:然后我们尝试了以下方法:

sudo apt-get -f install
# stop if you saw any errors

sudo dpkg --purge --force-depends ca-certificates
sudo apt-get -f install

We tried the above, which also failed to solve the issue.我们尝试了上述方法,但也未能解决问题。

The website opens without any issue outside the affected network.该网站在受影响的网络之外打开时没有任何问题。

We checked the website up status in the website https://www.websiteplanet.com/webtools/ which shows the site is running.我们在网站https://www.websiteplanet.com/webtools/中检查了网站的启动状态,显示该网站正在运行。 The SSL is working properly. SSL 工作正常。

The 'machine A' when brought to the affected network again, starts to give the error again.当“机器 A”再次被带到受影响的网络时,再次开始给出错误。

However, as we are the developer for the site we need to access the site from our office network.但是,由于我们是该站点的开发人员,因此我们需要从我们的办公网络访问该站点。 Please suggest a solution.请提出解决方案。

UPDATE 1:更新 1:

Ctrl + Shift + K on firefox gives An error occurred: SSL_ERROR_INTERNAL_ERROR_ALERT firefox 上的Ctrl + Shift + K给出An error occurred: SSL_ERROR_INTERNAL_ERROR_ALERT

$ curl -vk https://rskolkata.com

Output: Output:

*   Trying 151.106.116.81:443...
* TCP_NODELAY set
* Connected to rskolkata.com (151.106.116.81) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS alert, internal error (592):
* error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
* Closing connection 0
curl: (35) error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error

'dig rskolkata.com` gives the following output: 'dig rskolkata.com` 给出以下 output:

 dig rskolkata.com

; <<>> DiG 9.16.6-Ubuntu <<>> rskolkata.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29471
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;rskolkata.com.         IN  A

;; ANSWER SECTION:
rskolkata.com.      6794    IN  A   151.106.116.81

;; Query time: 0 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Fri Jan 22 14:25:50 IST 2021
;; MSG SIZE  rcvd: 58

And and dig +trace rskolkata.com gives following output:dig +trace rskolkata.com给出以下 output:

; <<>> DiG 9.16.6-Ubuntu <<>> +trace rskolkata.com
;; global options: +cmd
.           238434  IN  NS  k.root-servers.net.
.           238434  IN  NS  b.root-servers.net.
.           238434  IN  NS  h.root-servers.net.
.           238434  IN  NS  j.root-servers.net.
.           238434  IN  NS  e.root-servers.net.
.           238434  IN  NS  m.root-servers.net.
.           238434  IN  NS  c.root-servers.net.
.           238434  IN  NS  f.root-servers.net.
.           238434  IN  NS  d.root-servers.net.
.           238434  IN  NS  a.root-servers.net.
.           238434  IN  NS  g.root-servers.net.
.           238434  IN  NS  i.root-servers.net.
.           238434  IN  NS  l.root-servers.net.
;; Received 262 bytes from 127.0.0.53#53(127.0.0.53) in 3 ms

rskolkata.com.      12530   IN  A   151.106.116.81
rskolkata.com.      72951   IN  NS  ns1.dns-parking.com.
rskolkata.com.      72951   IN  NS  ns2.dns-parking.com.
;; Received 222 bytes from 199.7.91.13#53(d.root-servers.net) in 0 ms

The DNS name server is dimitris.ns.cloudflare.com and IP 172.67.138.143 as can be seen in https://mxtoolbox.com/ The DNS name server is dimitris.ns.cloudflare.com and IP 172.67.138.143 as can be seen in https://mxtoolbox.com/

Try to look at developer web console (firefox Ctrl+Shift+K) - anything interesting under Security tab?尝试查看开发人员 web 控制台(firefox Ctrl+Shift+K)- 安全选项卡下有什么有趣的吗?

Try to run curl -vk https://rskolkata.com - what does it show?尝试运行curl -vk https://rskolkata.com - 它显示了什么?

Since it seems you are testing website from office where you are also developing it - maybe "something special" was setup by your network admin, to help with testing?由于您似乎正在从您也在开发它的办公室测试网站 - 也许您的网络管理员设置了“一些特别的东西”,以帮助测试? Do dig rskolkata.com and dig +trace rskolkata.com both return expected IPs?是否dig rskolkata.comdig +trace rskolkata.com都返回预期的 IP?

Edit: Try to capture traffic with tcpdump (like tcpdump -nni eth0 host DESTIP -w trace.pcap ), then open trace.pcap in wireshark and compare working vs. not-working case.编辑:尝试使用 tcpdump 捕获流量(如tcpdump -nni eth0 host DESTIP -w trace.pcap ),然后在 wireshark 中打开 trace.pcap 并比较工作与不工作的情况。 Maybe there will be some difference.也许会有一些不同。

You said, a small team.你说,一个小团队。 Then I guess there is no fancy middlebox between LAN in Internet, that could do something to SSL handshake.然后我想互联网中的 LAN 之间没有花哨的中间盒,可以对 SSL 握手做些什么。

You can move your test client from LAN "closer" to Internet.您可以将测试客户端从“更靠近”的 LAN 移动到 Internet。 Does it change, when one GW/FW less is between you and Internet?当您和 Internet 之间减少 1 GW/FW 时,它会改变吗? I guess this could be related to networking equipment in your company, or networking equipment of your ISP.我想这可能与您公司的网络设备或您的 ISP 的网络设备有关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM