您的位置:首页 > 大数据 > 人工智能

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

2016-05-23 13:25 597 查看
按照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

安装成功。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  curl osx meteor