我正在尝试在Linux (Ubuntu12)上运行NuGet。我有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错误是由于某些证书(很可能是nuget.org证书)不受信任,我猜。这个blog post has more details。
所以我运行:
$ mozroots --import --sync
$ certmgr -ssl https://go.microsoft.com
$ certmgr -ssl https://nugetgallery.blob.core.windows.net
$ certmgr -ssl https://nuget.org..。无济于事。
NuGet的版本是2.3.0.0 (尽管我一开始使用的是一些也不能工作的旧版本)。
如何修复此错误?
发布于 2013-05-16 21:47:08
我可以通过将证书导入机器存储区而不是用户存储区来实现这一点,这是默认设置:
$ sudo mozroots --import --machine --sync
$ sudo certmgr -ssl -m https://go.microsoft.com
$ sudo certmgr -ssl -m https://nugetgallery.blob.core.windows.net
$ sudo certmgr -ssl -m https://nuget.org在执行此操作之前,我验证了-即使在执行了最初的基于用户存储的命令之后- the tlstest.exe tool也失败了,在导入到机器存储之后,它成功了。
当然,对我来说最重要的是,nuget也开始工作了。:)
https://stackoverflow.com/questions/15181888
复制相似问题