【发布时间】:2019-12-20 01:26:16
【问题描述】:
我尝试使用 RWordpress 包 (https://github.com/duncantl/RWordPress) 发布到我的 Wordpress 网站。这直到最近才有效,我现在收到以下错误消息。
options(WordPressLogin = c(bla = 'fasel'),
WordPressURL = 'https://www.econinfo.de/xmlrpc.php')
getRecentPostTitles()
Error in function (type, msg, asError = TRUE) :
error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
搜了一圈,好像和TLS版本有冲突,但是不明白是哪方面的。我的托管商提供的证书支持 TSL 1.1 和 TLS 1.2。
任何帮助将不胜感激。
我正在使用 Win 10
> RCurl::curlVersion()
$age
[1] 3
$version
[1] "7.40.0"
$vesion_num
[1] 468992
$host
[1] "x86_64-pc-win32"
$features
ssl libz ntlm asynchdns spnego largefile idn sspi
4 8 16 128 256 512 1024 2048
$ssl_version
[1] "OpenSSL/1.0.0o"
【问题讨论】:
-
你在使用
RCurl::postForm("https://www.econinfo.de/xmlrpc.php")时遇到同样的错误吗? -
是的,同样的错误。
-
您使用的是什么操作系统?你安装了哪个版本的 libcurl?上面的命令在使用 libcurl 版本 7.65.3 的 Debian 测试中运行良好。
-
OpenSSL 的版本太旧了,c.f. stackoverflow.com/a/27545567/8416610。我猜 CRAN 必须更新他们非常旧的 libcurl/openssl 版本才能获得更新的二进制文件。
-
您可以使用来自github.com/rwinlib/libcurl 的 R-on-Windows 工具链获取最新的 libcurl 构建。但是,我不确定这是否可以与 RCurl 一起使用。