Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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"/> 
like image 438
chemark Avatar asked Jan 23 '12 13:01

chemark


1 Answers

  • 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.

like image 178
Sunil Avatar answered Oct 17 '22 05:10

Sunil