最新消息:欢迎访问小松个人博客,小松最近开始学习java,感觉spring boot比较简单,下载文档开始学习一下

curl提示错误Peer certificate cannot be authenticated with known CA certificates

Linux 62浏览 0评论

我在虚拟机了要做一个测试,直接用yum安装的php版本太低,于是想中安装php7的版本,在网上找了一篇文章
加载php的源

rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

结果发现错误,错误意思是https有问题,错误如下

Peer certificate cannot be authenticated with known CA certificates

Retrieving https://mirror.webtatic.com/yum/el6/latest.rpm
curl: (60) Peer certificate cannot be authenticated with known CA certificates
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.
error: skipping https://mirror.webtatic.com/yum/el6/latest.rpm - transfer failed

网上各种找,更新CA证书什么都测试了发现还是有问题,突然看到一篇文章说是跟系统时间有关系,于是更新了系统的时间

ntpdate -u 0.north-america.pool.ntp.org

更新之后在执行,发现成功了

这个问题花了一个多小时终于解决了,记录一下

QQ交流群:136351212(满) 455721967

如无特别说明,本站文章皆为原创,若要转载,务必请注明以下原文信息:
转载保留版权:小松博客» curl提示错误Peer certificate cannot be authenticated with known CA certificates
本文链接地址:https://www.phpsong.com/3423.html

发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
木有头像就木有JJ!点这里按步骤申请Gravatar头像吧!