I get the following error running curl https://npmjs.org/install.sh | sh
on Mac OSX 10.9 (Mavericks):
install npm@latest curl: (60) SSL certificate problem: Invalid certificate chain More details here: http://curl.haxx.se/docs/sslcerts.html
How do I fix this?
The only solution to this problem is to get your host to update the root certificate on your server. So, you need to contact your server host and ask them to insert a new cacert.
To bypass SSL certificate validation for local and test servers, you can pass the -k or --insecure option to the Curl command. This option explicitly tells Curl to perform "insecure" SSL connections and file transfers. Curl will ignore any security warnings about an invalid SSL certificate and accept it as valid.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With