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 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
安装成功。
相关文章推荐
- 苹果mac OS X上安装metasploit
- php下目前为目最全的CURL中文说明
- PHP curl_setopt()函数实例代码与参数分析
- php采用curl访问域名返回405 method not allowed提示的解决方法
- php中file_get_content 和curl以及fopen 效率分析
- php中curl和file_get_content的区别
- php实现curl模拟ftp上传的方法
- PHP简单开启curl的方法(测试可行)[原创]_php技巧_脚本之家
- PHP使用CURL实现多线程抓取网页
- 利用curl 多线程 模拟 并发的详解
- 在PHP中使用curl_init函数的说明
- 使用php方法curl抓取AJAX异步内容思路分析及代码分享
- 利用curl抓取远程页面内容的示例代码
- 开启CURL扩展,让服务器支持PHP curl函数(远程采集)
- 使用curl递归下载软件脚本分享
- PHP 获取远程网页内容的代码(fopen,curl已测)
- PHP中让curl支持sock5的代码实例
- php curl常见错误:SSL错误、bool(false)
- curl不使用文件存取cookie php使用curl获取cookie示例
- php curl模拟post请求小实例