使用 CocoaPods 出现 SSL 证书验证失败错误的临时解决方案

在使用 CocoaPods 执行 pod install命令时报错:

objectivec 复制代码
[!] Couldn't determine repo type for URL: `https://cdn.cocoapods.org/`: SSL_connect returned=1 errno=0 peeraddr=104.26.1.240:443 state=error: certificate verify failed (unable to get local issuer certificate)

解决方案

执行以下命令以禁用 CocoaPods 统计信息并设置 SSL 证书:

objectivec 复制代码
export COCOAPODS_DISABLE_STATS=1
export SSL_CERT_FILE=/etc/ssl/cert.pem
pod install
相关推荐
qq_316837752 天前
caddy 使用阿里云的域名通过dns验证申请ssl证书
阿里云·云计算·ssl
无籽西瓜a4 天前
SSL/TLS工作流程以及HTTP与HTTPS详解
http·https·ssl
数据知道8 天前
PostgreSQL:如何配置数据库的传输层加密(SSL加密连接)
数据库·postgresql·ssl
有代理ip9 天前
常见数据采集问题及实操解决方案
爬虫·网络协议·http·golang·ssl
chniccs10 天前
宝塔面板去掉SSL的RSA
网络·安全·ssl
Hello.Reader10 天前
Flink SSL/TLS 安全加固内网 mTLS、REST HTTPS、证书 Pinning 与部署要点
安全·flink·ssl
2501_9159214310 天前
iOS 抓包怎么绕过 SSL Pinning 证书限制,抓取app上的包
android·网络协议·ios·小程序·uni-app·iphone·ssl
IT利刃出鞘10 天前
SSL证书--手动生成自签名IP证书
网络·网络协议·ssl
运维有小邓@11 天前
基于证书的身份验证:入门指南
网络协议·https·ssl