Visual Studio 2010 nuget error: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel

nuget, visual-studio-2010, web-config

Solution

Go to VS2010 → Tools → Library Package Manager → Package Manager Settings.

Choose Package Manager → Package Sources.

Add a new package source as:

Name: `NugetSource`

Source: http://packages.nuget.org/v1/FeedService.svc/

Move Up the newly added package source to first position.

UnCheck existing "Nuget official package source"

Restart VS2010.

Problem

Whenever I'm trying to install something or even just list the packages I get this error "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel" I tried this solution from Codeplex with no luck. I use the latest version of Nuget. I also tried different options in devenv.exe.config like this: ``` <servicePointManager checkCertificateName="false" checkCertificateRevocationList="false"/> ```

Original source