-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a guide on self-signed certs #2472
Comments
I believe the known workaround (see comment links above) is to manually invoke pub (instead of using
|
I was able to get this working in Windows behind a corporate setup using a custom self-signed certificate.
I'm not sure if this was optional, but I also added the ...flutter\bin\cache\dart-sdk\bin to the Windows Path variable before I did all of this. |
Is it possible to accomplish this in a mobile dev enviro. Android / iOS app? |
@eseidelGoogle
perhaps i'm not following but running pub on a flutter application yields |
I tried to generate a self-signed certificate but still got 'TLS error'. Thx. |
For me on Windows:
|
Hi @eseidelGoogle, I am behind corporate firewall and I have tried setting the DART_VM_OPTIONS. --root-certs-file="path_to_cert_file/cert.pem" Please let me know where should i add "flutter packages get" command? Should it be part of DART_VM_OPTIONS environment variable? |
FYI @zanderso for tooling triage. |
Filed flutter/flutter#56607 to try to make this a bit smoother on the tooling side. |
This works for me, that last line is imp. So do add flutter\bin\cache\dart-sdk\bin in windows path |
But if I have it point to a
|
Followed this and got this error when running
|
i have correctly the DART_VM_OPTIONS in the environment variables. But still complains that the certificate is self-signed
Any work around? |
I have the same issue as reported by @rockerhieu. Steps I took:
I'm on Windows 10 and have tried the steps above in both CMD and Git Bash with no luck. |
Hello Everyone, I have followed the same steps as mentioned by thdoan in his comment (except I exported certificate as DER and converted to PEM). I am getting the following error when running the flutter doctor command or any other flutter commands : Got TLS error trying to find package node_preamble at https://pub.dartlang.org. My organisation is using Zscaler as a proxy and Palo alto as a firewall. I have configured the proxy in environment variables along with the DART VM Options variable. Is there some configuration required at Palo alto as well? |
@SiddharthGadekar, generally you should install the certificate from your proxy on your system (assuming windows). You might want to try |
There are enough corporate setups out there were machines are expected to have a custom self-signed corporate cert and then send all traffic through a proxy so that https can be decrypted/inspected. Dart/Flutter don't play nice with these setups by default, but they're common enough that we should probably document how to work around this.
See dart-lang/sdk#25615 (comment)
dart-lang/pub#1882 as examples of requests.
The text was updated successfully, but these errors were encountered: