首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Linux上的NuGet :获取响应流时出错

Linux上的NuGet :获取响应流时出错
EN

Stack Overflow用户
提问于 2013-03-03 10:41:58
回答 1查看 14.7K关注 0票数 53

我正在尝试在Linux (Ubuntu12)上运行NuGet。我有Mono 3.0.6 (从源代码编译)。

代码语言:javascript
复制
$ 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

所以我运行:

代码语言:javascript
复制
$ 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 (尽管我一开始使用的是一些也不能工作的旧版本)。

如何修复此错误?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-05-16 21:47:08

我可以通过将证书导入机器存储区而不是用户存储区来实现这一点,这是默认设置:

代码语言:javascript
复制
$ 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也开始工作了。:)

票数 111
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15181888

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档