This question is not a duplicate of this but an update because the fix mentioned in that question is now deprecated, and does not work.
I'm running Ubuntu in a Docker container, and nuget is unable to restore on a C# solution, giving the error Error: SecureChannelFailure
repeatedly when running nuget restore mySolution.sln
.
From the old StackOverflow question, I tried the mozroots
command, but get WARNING: mozroots is deprecated, please move to cert-sync instead.
I then ran my cert-sync
manually, although it is noted that it is automatically run on mono's install anyway. No help.
Running the other suggested commands to add certs yielded no results either:
$ certmgr -ssl https://go.microsoft.com
$ certmgr -ssl https://nugetgallery.blob.core.windows.net
$ certmgr -ssl https://nuget.org
Although they seem to have added the certs, I am still unable to run nuget restore
.
Other maybe-helpful info:
Ubuntu version 16.04 in docker container
Mono JIT compiler version 5.0.1.1
NuGet Version: 2.12.0.0
What is the post-mozroots-deprecation accepted method to fix this issue?