首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Travis CI + NuGet产生无效证书错误

Travis CI + NuGet产生无效证书错误
EN

Stack Overflow用户
提问于 2017-11-12 01:06:39
回答 1查看 139关注 0票数 1

我正试着在特拉维斯上用NuGet

代码语言:javascript
复制
- sudo apt-get -qq -y update
- sudo apt-get -qq -y install mono-complete gtk-sharp2
- wget https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
- mono ./nuget.exe install ILMerge -Version 2.14.1208

不幸的是,我得到了以下错误:

代码语言:javascript
复制
  https://api.nuget.org/v3/index.json

Attempting to gather dependency information for package 'ILMerge.2.14.1208' with respect to project '/home/travis/build/craftr-build/craftr/build/.nuget-artifacts', targeting 'Any,Version=v0.0'
Invalid certificate received from server. Error code: 0xffffffff800b0109

我已经尝试了我在谷歌上找到的各种推荐,例如,在尝试使用NuGet之前使用以下内容:

代码语言:javascript
复制
- mozroots --import --sync
- yes | certmgr -ssl -m https://go.microsoft.com
- yes | certmgr -ssl -m https://nugetgallery.blob.core.windows.net
- yes | certmgr -ssl -m https://nuget.org

不幸的是,mozroot命令给出了

代码语言:javascript
复制
Downloading from 'http://mxr.mozilla.org/seamonkey/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1'...
Couldn't retrieve the file using the supplied information.

省略mozroot命令会产生相同的NuGet错误。

我怎样才能让NuGet在特拉维斯上工作?

EN

回答 1

Stack Overflow用户

发布于 2017-11-13 19:43:57

我现在只用了APT插件。我在另一个单声道项目here中找到了sourcelinse和key_urls

代码语言:javascript
复制
addons:
  apt:
    sources:
      - sourceline: deb http://download.mono-project.com/repo/debian trusty/snapshots/5.2.0.224 main
        key_url: http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xA6A19B38D3D831EF
      - sourceline: deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main
        key_url: https://packages.microsoft.com/keys/microsoft.asc
      - packages:
    packages:
      - mono-devel
      - ca-certificates-mono
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47240573

复制
相关文章

相似问题

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