我正在尝试在Linux上运行NuGet(Ubuntu 12).我有Mono 3.0.6(从源代码编译).
$ mono --runtime=v4.0.30319 .nuget/NuGet.exe update -self
Checking for updates from https://nuget.org/api/v2/.
Error getting response stream (Write: The authentication or decryption has failed.): SendFailure
Run Code Online (Sandbox Code Playgroud)
我收集的错误是由于某些证书(最有可能是nuget.org)不可信任.这篇博文有更多细节.
所以我跑了:
$ mozroots --import --sync
$ certmgr -ssl https://go.microsoft.com
$ certmgr -ssl https://nugetgallery.blob.core.windows.net
$ certmgr -ssl https://nuget.org
Run Code Online (Sandbox Code Playgroud)
......无济于事
NuGet版本是2.3.0.0(尽管我开始使用的某些旧版本也没有用).
我该如何解决这个错误?