Curl 请求在 SSL 上失败

Curl request failing over SSL

我正在尝试将 Piwik 设置为分析工具并让它处理我的 Nginx 访问日志。出于某种原因 python 无法连接到 Piwik,我相信这是因为我的站点仅通过 SSL 提供服务,但我不太确定该错误的含义。当我运行以下命令时:

sudo python /home/forge/example.com/piwik/misc/log-analytics/import_logs.py --url=https://example.com/piwik --idsite=1 --recorders=4 --enable-http-errors --enable-http-redirects --enable-static --enable-bots /var/log/nginx/example.com-access.log

我得到以下信息:

[INFO] Error when connecting to Piwik: <urlopen error [Errno 1] _ssl.c:510: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error>
[INFO] Retrying request, attempt number 2

我相信这是 Curl 在 SSL 上失败,但我不确定。有没有人以前遇到过这个问题或者有关于这个错误的更多信息?

问题原来是该站点使用的是使用 SNI 的 CloudFlare SSL。直到 2.7.7 才将对 SNI 的支持添加到 python。升级到 2.7.10 解决了这个问题!