OSX安装meteor时候CURL报SSL证书无效,curl: (60) SSL certificate problem: Invalid certificate chain

按照meteor官方说明安装的时候,在OSX下报出以下证书无效错误:


curl  https://install.meteor.com/ | sh


  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100  6675    0  6675    0     0   1068      0 --:--:--  0:00:06 --:--:--  1412

Downloading Meteor distribution


curl: (60) SSL certificate problem: Invalid certificate chain

More details here: http://curl.haxx.se/docs/sslcerts.html


curl performs SSL certificate verification by default, using a "bundle"

 of Certificate Authority (CA) public keys (CA certs). If the default

 bundle file isn't adequate, you can specify an alternate file

 using the --cacert option.

If this HTTPS server uses a certificate signed by a CA represented in

 the bundle, the certificate verification probably failed due to a

 problem with the certificate (it might be expired, or the name might

 not match the domain name in the URL).

If you'd like to turn off curl's verification of the certificate, use

 the -k (or --insecure) option.

Installation failed.


解决办法,在curl官网下载cacert.pem证书

https://curl.haxx.se/docs/caextract.html


然后执行指定证书:

curl -fsSL --cacert ./cacert.pem https://install.meteor.com/ | sh

Downloading Meteor distribution

######################################################################## 100.0%


Meteor 1.3.2.4 has been installed in your home directory (~/.meteor).

Writing a launcher script to /usr/local/bin/meteor for your convenience.


To get started fast:


  $ meteor create ~/my_cool_app

  $ cd ~/my_cool_app

  $ meteor


Or see the docs at:

docs.meteor.com


安装成功。

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值