美文网首页
记录遇到的curl: (60) SSL certificate

记录遇到的curl: (60) SSL certificate

作者: 墨_辰 | 来源:发表于2018-07-26 09:14 被阅读0次

    遇到问题的时候是使用cocoapod更新库的时候。更新到UMCCommon时报错的,具体的报错就想下面这样。

    curl: (60) SSL certificate problem: unable to get local issuer certificate
    More details here: https://curl.haxx.se/docs/sslcerts.html
    
    curl performs SSL certificate verification by default, using a "bundle"
     of Certificate Authority (CA) public keys (CA certs). If the default
     bundle file isn't adequate, you can specify an alternate file
     using the --cacert option.
    If this HTTPS server uses a certificate signed by a CA represented in
     the bundle, the certificate verification probably failed due to a
     problem with the certificate (it might be expired, or the name might
     not match the domain name in the URL).
    If you'd like to turn off curl's verification of the certificate, use
     the -k (or --insecure) option.
    

    看这段提示,我一直以为是证书的问题,翻来覆去的折腾了好久,下载的证书一直无法导入到自己的钥匙串里面,甚至都把cocoapod卸载掉重装了一遍,依旧是包这个问题,场面一度十分尴尬。
    解决方法:更新一下curl就解决了,cocoapod可以正常使用了。

    相关文章

      网友评论

          本文标题:记录遇到的curl: (60) SSL certificate

          本文链接:https://www.haomeiwen.com/subject/tcuvmftx.html