How to fix curl: (60) SSL certificate: Invalid certificate chain


I get the following error running curl | sh on Mac OSX 10.9 (Mavericks):

install npm@latest
curl: (60) SSL certificate problem: Invalid certificate chain
More details here:

How do I fix this?

10/31/2013 5:13:34 PM

Accepted Answer

Using the Safari browser (not Chrome, Firefox or Opera) on Mac OS X 10.9 (Mavericks) visit

Screenshot of Safari showing certificate error

Click the Show certificate button and then check the checkbox labelled Always trust. Then click Continue and enter your password if required.

Always trust checkbox

Curl should now work with that URL correctly.

11/1/2013 9:41:54 AM

First off, you should be wary of urls that throw SSL errors. That being said, you can suppress certificate errors in curl with

curl -k https://insecure.url/content-i-really-really-trust

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow