Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Honor R_LIBCURL_SSL_REVOKE_BEST_EFFORT (#1624)
* Honor R_LIBCURL_SSL_REVOKE_BEST_EFFORT R_LIBCURL_SSL_REVOKE_BEST_EFFORT was introduced in R on R-4.2 as documented in wch/r-source@f1ec503. If the environment variable is set to TRUE, then curl relaxes the certificate revocation checks. This is needed on Windows systems using curl with the schannel backend on environments with man in the middle https certificates (typically corporate environments), since those certificate revocation checks otherwise fail. To avoid duplicating custom configurations for all packages, I suggest to honor that environment variable here as well. I tested the command: curl.exe -X GET https://cloud.r-project.org/src/contrib/PACKAGES on a system where it failed for the reasons described above. I tested the proposed solution and it worked. curl.exe -X GET --ssl-revoke-best-effort https://cloud.r-project.org/src/contrib/PACKAGES I also considered that a user may have set the '--ssl-revoke-best-effort' parameter manually, and with my patch the user would be passing the parameter twice. I tested passing that option twice and curl did not care, so no backwards issue is expected. In other words, this worked: curl.exe -X GET --ssl-revoke-best-effort --ssl-revoke-best-effort https://cloud.r-project.org/src/contrib/PACKAGES * Update NEWS.md
- Loading branch information