我已经尝试在这里搜索大部分内容,但似乎没有用。 尝试卷曲-I -v https://secure2.lionair.co.id/lionairibe/OnlineBooking.aspx通常我使用ubuntu服务器返回错误,并没有任何问题,但当我尝试使用centos 6.6突然我所有的卷发到https返回错误在PHP甚至用linux命令行 感谢您能帮助我
试图卷曲时的反应:
* About to connect() to secure2.lionair.co.id port 443 (#0)
* Trying 202.79.216.183... connected
* Connected to secure2.lionair.co.id (202.79.216.183) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* NSS error -12190
* Error in TLS handshake, trying SSLv3...
> HEAD /lionairibe/OnlineBooking.aspx HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.16.2.3 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: secure2.lionair.co.id
> Accept: */*
>
* Connection died, retrying a fresh connect
* Closing connection #0
* Issue another request to this URL: 'https://secure2.lionair.co.id/lionairibe/OnlineBooking.aspx'
* About to connect() to secure2.lionair.co.id port 443 (#0)
* Trying 202.79.216.183... connected
* Connected to secure2.lionair.co.id (202.79.216.183) port 443 (#0)
* TLS disabled due to previous handshake failure
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* NSS error -12190
* Closing connection #0
* SSL connect error
curl: (35) SSL connect error
谢谢:)
答案 0 :(得分:2)
服务器仅支持TLS 1.1,即没有SSL 3.0,TLS 1.0和TLS 1.2。所以在与这个奇怪的服务器交谈时你必须非常小心。我不知道您使用的curl版本是否已经支持以这种方式限制TLS协议的必要选项,如果为NSS后端实现了此选项,但您可能会尝试以这种方式强制执行TLS 1.1: / p>
curl --tlsv1.1 https://secure2.lionair.co.id
如果这没有帮助,您可能需要升级curl,请将curl与另一个后端(如OpenSSL)一起使用,或者使用wget之类的工具。