curl: (60) SSL certificate problem: certificate has expired

Hongtao Hao / 2021-11-21


I encountered this error message when I tried to install TinyTex in R.

curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

I’m using macOS (10.14.6).

This gave me quite a headache for quite a long time. Fortunately, I finally found a solution here .

To repeat:

  1. open your Terminal and enter open -a Finder /etc/ssl/. As Bri Bri suggested , rename cert.pem to something else.
  2. Go to https://curl.se/docs/caextract.html and download the latest cacert.pem.
  3. Rename it to cert.pem and drag it into the /etc/ssl/ folder.

Last modified on 2022-05-18