最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

dart - Flutter: TLS Error When Installing Packages from pub.dev (macOS) - Stack Overflow

programmeradmin2浏览0评论

I'm having this error whenever I'm trying to install new package on my flutter based application.

Got TLS error trying to find package XYZ at 

I found a few similar questions, but they were not properly addressed. From what I gathered, the issue may be related to missing or untrusted root certificates, and one potential solution is to generate a self-signed certificate and set the following environment variable:

export DART_VM_OPTIONS="--root-certs-file={path.to.certificate.file}"

How do I generate this self signed certificate

发布评论

评论列表(0)

  1. 暂无评论