当我尝试在我的 ubuntu 12.04 TLS 服务器上 Curl 一个 SSL 页面时,它不起作用:
不是 ssl 页面:
$ curl https://evernote.com/ -vv
[the entire webpage]
Run Code Online (Sandbox Code Playgroud)
ssl页面:
$ curl https://evernote.com/ -vv
* About to connect() to evernote.com port 443 (#0)
* Trying 204.154.94.73... connected
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* Unknown SSL protocol error in connection to evernote.com:443
* Closing connection #0
curl: (35) Unknown SSL protocol error in connection to evernote.com:443
Run Code Online (Sandbox Code Playgroud)
这确实适用于我自己的机器(OS X)。
当我通过 openSSL 尝试时:
$ openssl s_client -connect evernote.com:433
connect: Connection timed out
connect:errno=110
Run Code Online (Sandbox Code Playgroud)
openSSL 版本:
$ openssl version
OpenSSL 1.0.1c 10 May 2012
Run Code Online (Sandbox Code Playgroud)
你好像打错字了。
$ openssl s_client -connect evernote.com:433
Run Code Online (Sandbox Code Playgroud)
远程主机上的端口 433 未打开,这就是您收到错误 110(连接被拒绝)的原因。
尝试改用端口 443(标准 HTTPS 端口)。
至于 curl,我可以在使用 时复制问题evernote.com
,但www.evernote.com
工作正常(尽管它发送 302 重定向到https://evernote.com/
.
$ curl https://evernote.com/ -vv
* About to connect() to evernote.com port 443 (#0)
* Trying 204.154.94.73...
* connected
* Connected to evernote.com (204.154.94.73) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* NSS error -5938 (PR_END_OF_FILE_ERROR)
* Encountered end of file
* Closing connection #0
curl: (35) Encountered end of file
Run Code Online (Sandbox Code Playgroud)
这意味着服务器终止了连接。不管什么原因,它真的不想和我们说话。
这可能不是您可以解决的问题。
归档时间: |
|
查看次数: |
59780 次 |
最近记录: |