R: download data securely using TLS/SSL
openssl bundled with RCurl is a bit old currently, which does not support the TLS v1.2
Yes, curl package is OK
Or you can use httr package which is a wrapper for the curl package
> library("httr")> GET("https://curl.haxx.se/ca/cacert.pem",config(sslversion=6,ssl_verifypeer=1))Response [https://curl.haxx.se/ca/cacert.pem] Date: 2017-08-16 17:07 Status: 200 Content-Type: application/x-pem-file Size: 256 kB<BINARY BODY>