在尝试位于 sample/client 中的 EDAMTest.php 文件时,我收到以下错误:
$ php EDAMTest.php
Uncaught TTransportException:
exception 'TTransportException' with message 'THttpClient: Could not connect to sandbox.evernote.com:443/edam/user' in /home/mike/evernote/lib/transport/THttpClient.php:196
Stack trace:
#0 /home/mike/evernote/lib/packages/UserStore/UserStore.php(57): THttpClient->flush()
#1 /home/mike/evernote/lib/packages/UserStore/UserStore.php(37): EDAM\UserStore\UserStoreClient->send_checkVersion('Evernote EDAMTe...', 1, 22)
#2 /home/mike/evernote/sample/client/EDAMTest.php(78): EDAM\UserStore\UserStoreClient->checkVersion('Evernote EDAMTe...', 1, 22)
尝试从浏览器(通过 apache)运行它也失败了。
当谷歌搜索它似乎是一个openssl问题时,安装了openssl:
$ openssl version
OpenSSL 1.0.1c 10 May 2012
它也可以作为 apache mod 启用:
$ ls -la /etc/apache2/mods-enabled/
(...)
lrwxrwxrwx 1 root root 36 Sep 11 19:57 ssl.conf -> /etc/apache2/mods-available/ssl.conf
lrwxrwxrwx 1 root root 36 Sep 11 19:57 ssl.load -> /etc/apache2/mods-available/ssl.load
(...)
我做错了什么?