Evernote PHP API和cURL SSL连接失败

时间:2016-04-20 17:15:48

标签: ssl curl evernote

我正在尝试使用Evernote API,但我无法使用SSL(特别是TLS1.2)进行连接。我在PHP中遇到了Uncaught异常,我无法使用命令行cURL进行连接。

这是没有指定密码的cURL对话框:

[root@vm13 anchors]# curl --tlsv1.2  -v
"https://sandbox.evernote.com/edam/user"  
*   Trying 216.104.243.26...  
* Connected to sandbox.evernote.com (216.104.243.26) port 443 (#0)  
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH  
* successfully set certificate verify locations:  
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt     CApath: none  
* TLSv1.2 (OUT), TLS handshake, Client hello (1):  
* Unknown SSL protocol error in connection to sandbox.evernote.com:443  
* Closing connection 0   curl: (35) Unknown SSL protocol error in connection to sandbox.evernote.com:443

我已经关注了每篇关于SSL错误和Evernote的文章。我升级了cURL,libcurl,NSS,PHP,OpenSSL,导入了sandbox.evernote.com证书,升级了ca证书等。到目前为止,没有任何工作。

我能够从同一台服务器连接到其他启用SSL的站点,所以我知道它不是防火墙。

1 个答案:

答案 0 :(得分:0)

我终于明白了。我的应用程序级防火墙阻止了“evernote”应用程序。我修改了规则,现在它正在工作