mac curl fsslssl版本可以换吗

51CTO博客_系统升级中
停服升级通知
为了给您全新的博客体验,本站将于本周三(11月22日)22:00至次日7:00进行系统升级,升级期间网站功能暂不可用。
对此给大家带来的不便,敬请谅解!感谢大家对升级工作的支持和理解,谢谢!按照meteor官方说明安装的时候,在OSX下报出以下证书无效错误:
curl& / | 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 / | 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:
安装成功。
本文已收录于以下专栏:
相关文章推荐
在支付的交互过程中,安全绝对是需要考虑的重要因素之一。体现在对服务器交互数据的签名等环节,但有的时候为了能达到更高的安全级别,还需要用ssl证书,即web服务器有证书,浏览器客户端/请求端也需要安装证...
curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
  今天同事做微信管理的项目,请求接口返回...
今天同事做微信分享时,碰到如下
SSL certificate problem: unable to get local issuer certificate。
的错误信息。
此问题的出现是由于...
比如我在windows下用git
SSL certificate problem: self signed certificate
在支付的交互过程中,安全绝对是需要考虑的重要因素之一。体现在对服务器交互数据的签名等环节,但有的时候为了能达到更高的安全级别,还需要用ssl证书,即web服务器有证书,浏览器客户端/请求端也需要安装证...
[E :32:22 base_handler:194] HTTP 599: SSL certificate problem: self signed certificate in c...
配置tomcat的SSL双向握手中,由于6.0.33版本中默认启用了APR(APR是通过JNI访问的可移植库,可以提高Tomcat的性能和伸缩性),所以采用传统的配置方式(如下)会报异常;
记录在此,供参考:
(一般在windows上会出现这个情况)
在配置tomcat的https/SSL时,一般情况是这样:
1、 生成密钥:Java环境变量下输入
keytool -v -genke...
记录在此,供参考:
(一般在windows上会出现这个情况)
在配置tomcat的https/SSL时,一般情况是这样:
生成密钥:Java环境变量下输入
keytool -v -genk...
解决方法来自于:
http://blog.csdn.net/trbbadboy/article/details/
在使用org.apache.http库请求网络时,出...
他的最新文章
讲师:董岩
您举报文章:
举报原因:
原文地址:
原因补充:
(最多只允许输入30个字)超过5000IP请点击右侧qq在线客服,低于5000IP请直接点击爱迪生广告联盟注册
超过5000IP请点击右侧qq在线客服,低于5000IP请直接点击爱迪生广告联盟注册
超过5000IP请点击右侧qq在线客服,低于5000IP请直接点击爱迪生广告联盟注册
超过5000IP请点击右侧qq在线客服,低于5000IP请直接点击爱迪生广告联盟注册
超过5000IP请点击右侧qq在线客服,低于5000IP请直接点击爱迪生广告联盟注册
1Darwin MacBookPro.local 16.0.0 Darwin Kernel Version 16.0.0: Mon Aug 29 17:56:20 PDT 2016; root:xnu-~3/RELEASE_X86_64 x86_64
curl https 请求
1234567891011121314151617181920212223242526272829303132333435363738394041curl -vo /dev/null /p1/160725/upload_ifrtenzsgq4gcodghezdambqhayde_217x278.jpg
& % Total & &% Received % Xferd &Average Speed & Time & &Time & & Time &Current
& & & & & & & & & & & & & & & & &Dload &Upload & Total & Spent & &Left &Speed
& 0 & & 0 & &0 & & 0 & &0 & & 0 & & &0 & & &0 --:--:-- --:--:-- --:--:-- & & 0* & Trying 183.134.101.194...
* Connected to
(183.134.101.194) port 443 (#0)
& 0 & & 0 & &0 & & 0 & &0 & & 0 & & &0 & & &0 --:--:-- --:--:-- --:--:-- & & 0* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: *.
* Server certificate: Symantec Class 3 Secure Server CA - G4
* Server certificate: VeriSign Class 3 Public Primary Certification Authority - G5
& GET /p1/160725/upload_ifrtenzsgq4gcodghezdambqhayde_217x278.jpg HTTP/1.1
& User-Agent: curl/7.49.1
& Accept: */*
& HTTP/1.1 200 OK
& Server: marco/0.18
& Date: Mon, 17 Oct :10 GMT
& Content-Type: image/jpeg
& Content-Length: 14567
& Connection: keep-alive
& X-Source: C/200
& Content-Disposition: filename=&upload_ifrtenzsgq4gcodghezdambqhayde_217x278.jpg&
& X-Reqid: xG4AAMPudKhtCX0U
& Cache-Control: public, max-age=
& ETag: &FrEoguEfkogJg6isWcHDYxZUY11n&
& X-Log: mc.g:1/404;mc.g/404;rs24_14.sel/rdb.g;bs.r.31.212.;DBD;v4.qtbl.get:1;RS.dbs:1;mc.s;RS:2;mc.s;IO:22
& Content-Transfer-Encoding: binary
& Access-Control-Expose-Headers: X-Log, X-Reqid
& Access-Control-Allow-Origin: *
& X-Qiniu-Zone: 0
& Last-Modified: Mon, 25 Jul :27 GMT
& Access-Control-Max-Age: 2592000
& Accept-Ranges: bytes
& Age: 321492
& X-Cache: HIT from mix-hz-fdi-165; HIT from ctn-zj-lna-196
& X-Request-Id: fa69a32a25e863cd10e64e2b
& Via: S.mix-hz-fdi-171, T.101165.H.1, V.mix-hz-fdi-165, T.101197.H.1, M.ctn-zj-lna-196
{ [14567 bytes data]
100 1567 & &0 & & 0 &28797 & & &0 --:--:-- --:--:-- --:--:-- 28788
* Connection #0 to host
left intact
可以看到正常请求了,改换成同样环境下的 wget 测试
1234567wget /p1/160725/upload_ifrtenzsgq4gcodghezdambqhayde_217x278.jpg
-- 09:35:20-- &/p1/160725/upload_ifrtenzsgq4gcodghezdambqhayde_217x278.jpg
Resolving ... 183.134.101.194, 183.158.35.57, 183.158.35.59, ...
Connecting to |183.134.101.194|:443... connected.
ERROR: cannot verify 's certificate, issued by 'CN=Symantec Class 3 Secure Server CA - G4,OU=Symantec Trust Network,O=Symantec Corporation,C=US':
& Unable to locally verify the issuer's authority.
To connect to
insecurely, use `--no-check-certificate'.
切换到本地的虚拟机,环境
1Linux localhost.localdomain 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC
x86_64 x86_64 GNU/Linux
使用 curl 测试:
12345678910111213141516171819202122232425262728293031323334curl -vo /dev/null /p1/160725/upload_ifrtenzsgq4gcodghezdambqhayde_217x278.jpg
& % Total & &% Received % Xferd &Average Speed & Time & &Time & & Time &Current
& & & & & & & & & & & & & & & & &Dload &Upload & Total & Spent & &Left &Speed
& 0 & & 0 & &0 & & 0 & &0 & & 0 & & &0 & & &0 --:--:-- --:--:-- --:--:-- & & 0* & Trying 183.158.35.59...
* TCP_NODELAY set
* Connected to
(183.158.35.59) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* & CAfile: /etc/pki/tls/certs/ca-bundle.crt
& CApath: none
& 0 & & 0 & &0 & & 0 & &0 & & 0 & & &0 & & &0 --:--:-- --:--:-- --:--:-- & & 0* Server certificate:
* & & & subject: CN=*.,OU=RD,O=Hangzhou Juangua Network Limited,L=Hangzhou,ST=Zhejiang,C=CN
* & & & start date: Mar 02 00:00:00 2015 GMT
* & & & expire date: Mar 01 23:59:59 2018 GMT
* & & & common name: *.
* & & & issuer: CN=Symantec Class 3 Secure Server CA - G4,OU=Symantec Trust Network,O=Symantec Corporation,C=US
* NSS error -8179 (SEC_ERROR_UNKNOWN_ISSUER)
* Peer's Certificate issuer is not recognized.
* Curl_http_done: called premature == 1
* stopped the pause stream!
& 0 & & 0 & &0 & & 0 & &0 & & 0 & & &0 & & &0 --:--:-- --:--:-- --:--:-- & & 0
* Closing connection 0
curl: (60) Peer's Certificate issuer is not recognized.
More details here: https://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.
为什么 OSX 下的 curl 能验证证书成功,而同环境下的 wget 和 Linux 下的 curl 就不行?(PS:证书是有问题的,证书链不完整)
问题应该和 –with-darwinssl 有关
本文出自操他妈,转载时请注明出处及相应链接。
本文永久链接: /71218.html
Ɣ回顶部#&cd&/etc/yum.repos.d/#&wget&&http:///.help/CentOS6-Base-163.repo#&vi&CentOS6-Base-163.repo编辑文件,把文件里面的$releasever全部替换为版本号,即6 最后保存!注:mac中自带的curl和php版本可能不兼容,或者其他原因,在未安装curl时总是无法调用https,提示SSL certificate problem: Invalid certificate chain
brew install php70 --with-homebrew-curl
brew install curl --with-openssl
OpenSSL 是一个安全套接字层密码库,囊括主要的密码算法、常用的密钥和证书封装管理功能及SSL协议,并提供丰富的应用程序供测试或其它目的使用
checking if the location of ZLIB install directory is defined... no
configure: error: Cannot find libz
xcode-select
本文已收录于以下专栏:
相关文章推荐
CURL? 嗯,说来话长了~~~~
这东西现在已经是苹果机上内置的命令行工具之一了,可见其魅力之一斑
二话不说,先从这里开始吧!
curl http://ww...
mac下其实已经安装好了PHP,而且版本还蛮新的,平时搞一搞开发,还是可以的,也没啥大问题,但是今天偶然发现一个验证码图片加载不了,函数报错:PHP Fatal error: Call to unde...
CURL? 嗯,说来话长了~~~~
这东西现在已经是苹果机上内置的命令行工具之一了,可见其魅力之一斑
二话不说,先从这里开始吧!
curl http://ww...
/use-brew-install-nginx-php-mysql.html
这两天重新安装了下MAC系统下的nginx+php+mysql环境,今...
今天部署yige
如果你直接使用PHP CURL函数来抓取http内容可能没有任何问题了,但是如果你要正抓取的是https文件才会发现本文章帮你解决了一个大难题了,下面我们来看看具体操作过程。
三年前写过一篇《一个简...
curl是利用URL语法在命令行方式下工作的开源文件传输工具,下面介绍一下php使用curl访问https的示例,大家参考使用吧
为方便说明,先上代码吧
三年前写过一篇《一个简陋的支持HTTPS的PHP CURL封装函数》,当时只是知其然不知其所以然,今天来详细梳理一下。
为方便说明,先上代码吧~ 这是今天重新封装的一个函数
* curl POST
请求超时时间
他的最新文章
讲师:董岩
您举报文章:
举报原因:
原文地址:
原因补充:
(最多只允许输入30个字)

我要回帖

更多关于 mac 看ssl版本 的文章

 

随机推荐