microsoft / microsoft-r-open

Microsoft R Open Source
212 stars 69 forks source link

Hardcoded CURL_CA_BUNDLE interferes with custom SSL certificates #110

Open alexvorobiev opened 4 years ago

alexvorobiev commented 4 years ago

The bin/R script has this line

export CURL_CA_BUNDLE=${R_HOME_DIR}/lib/microsoft-r-cacert.pem

This breaks the --vanilla mode of running R when any kind of connection is needed when custom SSL certificates (common on enterprise networks) are involved. One example is publishing from RStudio Pro server to RStudio Connect. In the vanilla mode the files like Rprofile.site are ignored so we can't unset the variable there.