0
我正嘗試在Travis上使用NuGet。使用以下嘗試使用的NuGet前Travis CI + NuGet產生無效的證書錯誤
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
我已經從我在谷歌找到嘗試過各種建議,例如:
- 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
不幸的是,我得到以下錯誤
- 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命令給出了
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.
退出mozroots命令會導致相同的NuGet錯誤。
我怎樣才能讓NuGet在Travis上工作?