简体   繁体   English

使用来自 letencrypt 的证书与颤振

[英]Use certificate from letsencrypt with flutter

My server uses a certificate from letsencrypt, and the https connection works great from chrome on my phone, but fails with "unable to get local issuer certificate" from my flutter app.我的服务器使用来自 letencrypt 的证书,并且 https 连接在我手机上的 chrome 上运行良好,但由于我的 flutter 应用程序中的“无法获取本地颁发者证书”而失败。 I am using the "http.dart" library to connect.我正在使用“http.dart”库进行连接。 This seems to be a common occurrence and a common question, but other people seem to just turn off the cert check or include the .crt file in the project, both of which aren't optimal solutions.这似乎是一个常见的事件和常见的问题,但其他人似乎只是关闭证书检查或在项目中包含 .crt 文件,这两者都不是最佳解决方案。

Has anyone found a better solution?有没有人找到更好的解决方案? A different lib?一个不同的库? A configuration that I'm missing?我缺少的配置?

Thanks in advance.提前致谢。

显然这是服务器端的配置错误: https : //github.com/dart-lang/http/issues/376

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM