在Mac上卷曲'证书验证失败' [英] Curl 'certificate verification failed' on mac

查看:82
本文介绍了在Mac上卷曲'证书验证失败'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Mac上,稍微安装一些东西(在这种情况下为chromedriver),会产生以下结果:

On the Mac, brew install something (chromedriver in this case), yields:

curl: (51) SSL: certificate verification failed (result: 5)
Error: Failed to download resource "chromedriver"
Download failed: https://chromedriver.storage.googleapis.com/2.22/chromedriver_mac32.zip

Que pasa?

推荐答案

Env var以前,其他一些工具已将SSL_CERT_FILE设置为某些内容。 ...

Env var SSL_CERT_FILE was set to something by some other tool previously. This ...

export SSL_CERT_FILE=""
brew install something

...解决了问题

这篇关于在Mac上卷曲'证书验证失败'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆