drl6054 2015-10-05 19:12 采纳率: 0%
浏览 692

Facebook SSL3_READ_BYTES:sslv3警报握手失败

I am trying to connect with Facebook For Login, but I do not know why I am getting errors. Below is the curl code that I am using:

    $ch = curl_init();
    curl_setopt($ch,CURLOPT_URL,$url);      
    curl_setopt($ch, CURLOPT_SSLVERSION, 3);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);  
    curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,false); 
    curl_setopt($ch,CURLOPT_CAINFO, getcwd().'/cacert.pem');    
    curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,10);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); 
    curl_setopt($ch,  CURLOPT_USERAGENT , "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)");        
    $result = curl_exec($ch);

but still I am getting below error :

error: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure

My server is Centos 6.5 with PHP 5.4 with below Curl Version :

curl 7.44.0 (x86_64-redhat-linux-gnu) libcurl/7.44.0 OpenSSL/1.0.1e zlib/1.2.3 c-ares/1.10.0 libidn/1.18 libssh2/1.6.0

Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp

Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets Metalink

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 聚类分析或者python进行数据分析
    • ¥15 逻辑谓词和消解原理的运用
    • ¥15 三菱伺服电机按启动按钮有使能但不动作
    • ¥15 js,页面2返回页面1时定位进入的设备
    • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
    • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
    • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
    • ¥20 腾讯企业邮箱邮件可以恢复么
    • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
    • ¥15 错误 LNK2001 无法解析的外部符号