curl认证过期

是由于Homebrew长期没有更新,导致本地证书过期。

报错:

curl: (60) SSL certificate problem: certificate has expired

More details here: curl - SSL CA Certificates

curl failed to verify the legitimacy of the server and therefore could not

establish a secure connection to it. To learn more about this situation and

how to fix it, please visit the web page mentioned above.

解决:

echo insecure >> ~/.curlrc

HOMEBREW_CURLRC=1

export HOMEBREW_CURLRC

#brew install git

测试访问:

curl认证过期_第1张图片

 

你可能感兴趣的:(linux,centos)