curl - 使用 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.
我试过的:
- 使用重新安装 curl
brew install curl
- 重新导入所有内部证书
几次尝试后我仍然收到此错误,这是一个愚蠢的错误:
当我键入时:which curl
它在另一个应用程序下显示 curl 命令,而不是/usr/bin/curl
(mac)。因此,如果有人遇到此错误,希望它会有所帮助。
解决方案
推荐阅读
- c# - ASP.NET Core 3.1 Web API - 为不使用它的控制器禁用 Windows 身份验证
- swift - 如何在 Swfit 中使用 UserDefaults 保存和加载 UIimage?
- mongodb - MongoDB中的项目删除文档中的一个级别
- python - Django int() 参数必须是字符串、类似字节的对象或数字,而不是“OrderItem”
- html - CSS Flex - 间距但左对齐元素?
- android - 我想更改启动器 Activity 而不会崩溃我的应用程序并在主屏幕上保留我的应用程序的快捷方式
- flutter - 没有构造函数“文本”。具有在类“文本”中声明的匹配参数
- python - 从 requirements.txt 安装 Torch 时出现内存错误
- textures - Qt3d 透明纹理将被覆盖。如何解决这个问题?
- flask - 是否可以在 API 不公开的情况下将数据从客户端发送到服务器?