【发布时间】:2018-08-03 23:54:01
【问题描述】:
我最近将一个项目从 1.22.1 升级到 1.24.3。随后,pub get 失败了
客户端握手错误(操作系统错误: CERTIFICATE_VERIFY_FAILED:证书链中的自签名证书(ssl_cert.c:345))
或
客户端握手错误(操作系统错误:错误:1000007d:SSL 例程:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED)
我发现了关于出现此错误的类似主题,但这些主题中给出的解决方案似乎都没有解决此问题。我在这些线程中运行了 pub --trace --verbosity all get as requests,输出 here
Webstorm 控制台的详细输出是
Working dir: C:\SGGDev\pearls\client
C:\DevTools\dart-sdk-1-24-3\bin\pub.bat get
Resolving dependencies...
Downloading uuid 0.5.3...
Downloading convert 2.0.1...
Downloading charcode 1.1.1...
Downloading crypto 2.0.2+1...
Downloading collection 1.14.3...
Downloading typed_data 1.1.5...
Downloading xml 2.6.0...
Downloading petitparser 1.6.1...
Downloading matcher 0.12.1+2...
Downloading stack_trace 1.8.0...
Downloading path 1.4.2...
Handshake error in client (OS Error:
CERTIFICATE_VERIFY_FAILED: self signed certificate in certificate chain(ssl_cert.c:345))
Process finished with exit code 1
在我删除 appdata 中的 pub 缓存之前,一个建议的解决方案,在第一个或第二个包之后几乎立即遇到了同样的错误。
【问题讨论】:
-
在这种情况下,我会考虑在 pub 客户端上提交错误。