Curl ssl certificate issue

Hi,

my build seems to have problems with codecov/pkgdown deployment. I constantly get CURL errors like:

$ Rscript -e 'covr::codecov()'

Error in curl::curl_fetch_memory(url, handle = handle) : 

  Cert verify failed: BADCERT_NOT_TRUSTED

see https://travis-ci.com/github/kkmann/badr/jobs/358070923

I am getting a bit desperate - any help appreciated!

Does this occur locally as well?

nope, no problems locally.

I guess you need to apt install ca-certificates.


Judging by https://github.com/jeroen/curl/blob/master/src/ssl.c and https://github.com/jeroen/curl/blob/master/NEWS, R curl package uses the system’s libcurl (at least, when built from source). So it should be seeking the certificate bundle at the system-wide location.

@jimhester as the maintainer of covr, could you say where it gets TLS certificates from? Running it with strace, I don’t see it trying to open any kind of certificate store at all.

As shown in the error message it uses the curl package, covr doesn’t do anything special with certificates.