本文介绍了扑医生:为什么我会出现卷曲错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已正确安装flutter SDK,但现在flutter doctor无法正常工作.

I installed the flutter SDK properly, but now flutter doctor isn't working.

$ set | grep SSL
SSL_CA_CERT_FILE=/Users/agoyal3/certs/ca.pem
SSL_CA_CERT_PATH=/Users/agoyal3/certs
SSL_CERT_FILE=/Users/agoyal3/certs/server-crt.pem
SSL_KEY_FILE=/Users/agoyal3/certs/server-key.pem

$ pwd
/Users/agoyal3/temp/flutter/bin

$ ./flutter doctor
Downloading Dart SDK from Flutter engine ead227f118077d1f2b57842a32abaf105b573b8a...
  % 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: 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.

推荐答案

您的系统可能缺少有效的SSL证书.

Probably your system is lacking valid SSL certs.

尝试做:

  1. 此处

然后将其设置为SSL_CA_CERT_PATH,并将文件设置为SSL_CA_CERT_FILE

Then set this as the SSL_CA_CERT_PATH and the file as SSL_CA_CERT_FILE

希望有帮助!

这篇关于扑医生:为什么我会出现卷曲错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 21:51