首页 > 解决方案 > 使用 curl 验证 codecov 会引发错误:curl: (60) SSL 证书问题:无法获取本地颁发者证书

问题描述

curl --data-binary @codecov.yml https://codecov.{my.url.something}/validate

这是错误:

curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
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.

我试过的:

  1. 使用重新安装 curlbrew install curl
  2. 重新导入所有内部证书

几次尝试后我仍然收到此错误,这是一个愚蠢的错误:

当我键入时:which curl 它在另一个应用程序下显示 curl 命令,而不是/usr/bin/curl(mac)。因此,如果有人遇到此错误,希望它会有所帮助。

标签: curlcodecov

解决方案


推荐阅读