pod install 证书报错

[!] Couldn't determine repo type for URL: https://git.xxxx.com/xxxx/xxxx.git: SSL_connect returned=1 errno=0 peeraddr=121.5.97.97:443 state=error: certificate verify failed (unable to get local issuer certificate)

https://stackoverflow.com/questions/76821349/pod-install-error-certificate-verify-failed-unable-to-get-local-issuer-certifi

运行命令brew info openssl
查看到根证书目录之后,一般是/opt/homebrew/etc/openssl@3/certs
进入这个目录, cd /opt/homebrew/etc/openssl@3/certs
然后执行
wget https://www.xxxx.com/xxx/ShunLianRootCA.pem
wget https://www.xxxx.com/xxx/ShunLianRootCA-ECC.pem

刷新根证书
/opt/homebrew/opt/openssl@3/bin/c_rehash

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容