如何解决curl:(60)SSL证书:无效的证书链 [英] How to fix curl: (60) SSL certificate: Invalid certificate chain

查看:5466
本文介绍了如何解决curl:(60)SSL证书:无效的证书链的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下错误,运行 curl https://npmjs.org/install.sh |

 安装npm @ latest 
curl:在Mac OSX 10.9(Mavericks) (60)SSL证书问题:证书链无效
更多详细信息:http://curl.haxx.se/docs/sslcerts.html

如何解决此问题?

解决方案

使用Safari浏览器,Firefox或Opera)在Mac OS X 10.9(Mavericks)上访问 https://registry.npmjs.org



单击显示证书按钮,然后选中标记为始终信任的复选框。然后点击继续并根据需要输入您的密码。





Curl应该可以正确使用该网址。


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?

解决方案

Using the Safari browser (not Chrome, Firefox or Opera) on Mac OS X 10.9 (Mavericks) visit https://registry.npmjs.org

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

Curl should now work with that URL correctly.

这篇关于如何解决curl:(60)SSL证书:无效的证书链的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆