SSL握手已中止-确切原因是什么?

问题描述:

在尝试建立HTTPS连接时,我得到了IOException:

While trying to establish a HTTPS connection, I get back an IOException:

SSL handshake aborted: ssl=0x519ea2d8: I/O error during system call, Connection reset by peer

我想这与钥匙串不完整有关-但是我如何找出导致此错误的确切原因呢?

I guess it has something to do with an incomplete keychain - but how can I find out what the exact reason is for this error?

对等连接重置

Connection reset by peer

这意味着服务器已关闭连接,因为它不喜欢您发送给它的内容.几乎没有什么细节可以了解实际情况,但可能是协议版本错误,密码错误等,在这种情况下,您可能会在服务器端找到更多信息.但这也可能是切断连接之间的防火墙,因为它违反了防火墙策略. 如果您有另一个可以成功连接的客户端,则对两者进行数据包捕获并进行比较.

This means that the server has closed the connection because it did not like what you have send to it. There are too few details to find out what really is going on but it might be the wrong protocol version, wrong ciphers etc in which case you might find more information on the server side. But it might also be a firewall in between cutting the connection because it violates the firewall policy. If you have another client which can successfully connect make a packet capture of both and compare.