Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
443 views
in Technique[技术] by (71.8m points)

急 pod install SSL certificate problem 。

今天尝试了一下weexpack 工具,生成了一个test项目

weexpack create test
npm install
weexpack platform add ios
weexpack run ios

然后就报错了

    /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods/executable.rb:89: warning: Insecure world writable dir /Users/freeman/sh in PATH, mode 040777
Analyzing dependencies
Fetching podspec for `Weexplugin` from `./Weexplugin/`
Downloading dependencies
Installing ATSDK-Weex (0.0.1)
Installing SDWebImage (3.7.5)
Installing SocketRocket (0.4.2)
Installing WXDevtool (0.9.5)
Installing WeexSDK (0.10.1)

[!] Error installing WeexSDK
[!] /Applications/XAMPP/bin/curl -f -L -o /var/folders/73/qz3qkw8n2pj61htppvtfjvxc0000gn/T/d20170309-3013-5wjmge/file.zip https://gw.alicdn.com/bao/uploaded/LB1kNzkPFXXXXb6XXXXXXXXXXXX.zip --create-dirs --netrc-optional

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (60) SSL certificate problem: certificate has expired
More details here: http://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.
 

尝试了如下方式解决
下载证书 https://curl.haxx.se/docs/cae...
被动更新证书 https://blog.digicert.com/exp...

更换了pod的源为淘宝的,问题依旧


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

echo insecure >> ~/.curlrc


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...