在 mac 上卷曲 'certificate verification failed'

Curl 'certificate verification failed' on mac

在 Mac、brew install something(本例中为 chromedriver)上,产生:

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

怎么了?

Env var SSL_CERT_FILE 之前由其他工具设置为某些内容。这个...

export SSL_CERT_FILE=""
brew install something

...修复问题