简体   繁体   English

“gnutls_handshake()失败():一个意外长度的TLS数据包”在学校收到“

[英]“gnutls_handshake() failed(): A TLS packet with unexpected length was receive” at school

This problem happens on my Ubuntu 12.04, Git version 1.7.9.5 这个问题发生在我的Ubuntu 12.04,Git版本1.7.9.5上

There appears always an error message "error: gnutls_handshake() failed: A TLS packet with unexpected length was receive..." while I am using Git with HTTPS protocol via the network of our school. 总是出现一条错误消息“错误:gnutls_handshake()失败:一个意外长度的TLS数据包正在接收......”而我通过我们学校的网络使用Git和HTTPS协议。

According to the result of parsing the packet with Wireshark, the Git-client sends a Hello packet via SSL protocol in the fourth step, and receives in the fifth step a RST/ACK error. 根据使用Wireshark解析数据包的结果,Git-client在第四步中通过SSL协议发送Hello数据包,并在第五步接收RST/ACK错误。

But in the normal networking environment, Git sends a Hello packet via TLSv1 protocol in the fourth step and then works like a charm after receiving the ACK packet. 但是在正常的网络环境中,Git在第四步中通过TLSv1协议发送Hello数据包,然后在收到ACK数据包后像魅力一样工作。

I would like to check out where the problem happens in our weird network environment, or is it caused by Git? 我想查看在我们奇怪的网络环境中问题发生的地方,还是由Git引起的?

The attachments are the results from Wireshark in both network environments: 附件是Wireshark在两种网络环境中的结果:

Wrong environment 错误的环境

在错误环境中

Correct environment 正确的环境

在正确的环境中

It really looks like you have something messing with your HTTPS traffic. 看起来你的网络流量很糟糕。

I encountered this message when dealing with networks with captive portal authentication or proxies that try to snoop on your traffic by sending you a custom certificate. 在处理具有强制门户网站身份验证的网络或尝试通过向您发送自定义证书来窥探您的流量的代理时,我遇到此消息。

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

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