当我在 Ubuntu 中执行以下命令时:
curl -v --insecure -XGET 'https://user:pass@IP_ADDR:PORT/SOME_FILE.php'
Run Code Online (Sandbox Code Playgroud)
我得到这个输出:
* Hostname was NOT found in DNS cache
* Trying IP_ADDR...
* Connected to IP_ADDR (IP_ADDR) port PORT (#0)
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
Run Code Online (Sandbox Code Playgroud)
几分钟后,我得到了这个:
* Unknown SSL protocol error in connection to IP_ADDR:PORT
* Closing connection 0
curl: (35) Unknown SSL protocol error in connection to IP_ADDR:PORT
Run Code Online (Sandbox Code Playgroud)
当我在 CentOS 中尝试同样的事情时,我仍然卡在Client Hello
,但最后我得到了这个:
curl: (28) Operation timed …
Run Code Online (Sandbox Code Playgroud)