friism friism -4 years ago 323
Linux Question

NuGet on Linux: Error getting response stream

I'm trying to run NuGet on Linux (Ubuntu 12). I have Mono 3.0.6 (compiled from source).

$ mono --runtime=v4.0.30319 .nuget/NuGet.exe update -self
Checking for updates from
Error getting response stream (Write: The authentication or decryption has failed.): SendFailure

The error is due to some certificate (the one most likely) not being trusted, I gather. This blog post has more details.

So I've run:

$ mozroots --import --sync
$ certmgr -ssl
$ certmgr -ssl
$ certmgr -ssl

... to no avail.

NuGet Version is (although I started out with some older version that also did not work either).

How can I fix this error?

Answer Source

I was able to get this working by importing the certificates into the machine store and not the user store, which is the default:

$ sudo mozroots --import --machine --sync
$ sudo certmgr -ssl -m
$ sudo certmgr -ssl -m
$ sudo certmgr -ssl -m

I verified that before I did this — even after having done the original user store-based commands — the tlstest.exe tool failed, and after importing into the machine store it succeeded.

And, most important to me of course, nuget started working then too. :)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download