Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/210.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么curl/OpenSSL无法获取chrome+;firefox可以吗?_Curl_Https_Openssl - Fatal编程技术网

为什么curl/OpenSSL无法获取chrome+;firefox可以吗?

为什么curl/OpenSSL无法获取chrome+;firefox可以吗?,curl,https,openssl,Curl,Https,Openssl,在我的程序(使用OpenSSL)和curl中,我都无法获取网站: $ curl -v https://registration.experient-inc.com/HTMLProduction/ShowCES131/ConfirmationImages/CES131_Header.JPG * About to connect() to registration.experient-inc.com port 443 (#0) * Trying 12.153.51.94... * connect

在我的程序(使用OpenSSL)和curl中,我都无法获取网站:

$ curl -v https://registration.experient-inc.com/HTMLProduction/ShowCES131/ConfirmationImages/CES131_Header.JPG * About to connect() to registration.experient-inc.com port 443 (#0) * Trying 12.153.51.94... * connected * Connected to registration.experient-inc.com (12.153.51.94) port 443 (#0) * successfully set certificate verify locations: * CAfile: /usr/ssl/certs/ca-bundle.crt CApath: none * SSLv3, TLS handshake, Client hello (1): * Unknown SSL protocol error in connection to registration.experient-inc.com:443 * Closing connection #0 curl: (35) Unknown SSL protocol error in connection to registration.experient-inc.com:443 $curl-vhttps://registration.experient-inc.com/HTMLProduction/ShowCES131/ConfirmationImages/CES131_Header.JPG *即将连接()到registration.experience-inc.com端口443(#0) *正在尝试12.153.51.94。。。 *连接的 *连接到registration.experience-inc.com(12.153.51.94)端口443(#0) *已成功设置证书验证位置: *CAfile:/usr/ssl/certs/ca-bundle.crt 卡帕斯:没有 *SSLv3,TLS握手,客户端hello(1): *与注册相关的未知SSL协议错误。Experience-inc.com:443 *正在关闭连接#0 curl:(35)与注册相关的未知SSL协议错误。experience-inc.com:443 根据另一个问题,我将发布直接openssl调用的结果:

$ openssl s_client -host 12.153.51.94 -port 443 CONNECTED(00000003) write:errno=104 --- no peer certificate available --- No client certificate CA names sent --- SSL handshake has read 0 bytes and written 320 bytes --- New, (NONE), Cipher is (NONE) Secure Renegotiation IS NOT supported Compression: NONE Expansion: NONE --- $openssl s_客户端-主机12.153.51.94-端口443 已连接(00000003) 写入:errno=104 --- 没有可用的对等证书 --- 未发送客户端证书CA名称 --- SSL握手读取0字节,写入320字节 --- 新建,(无),密码为(无) 不支持安全重新协商 压缩:无 扩展:无 ---
知道为什么会发生这种情况/如何修复它吗?

显然,web服务器根本不支持SSLv2。也就是说,它甚至不支持SSLv2 hello。强制curl或OpenSSL使用SSLv3+会导致工作查询