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

前端 未结 11 1321
眼角桃花
眼角桃花 2020-12-04 19:19

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

相关标签:
11条回答
  • I could solve this problem by dropping the secure socket, https -> http. Go to Tools -> Nuget Package Manager -> Package Sources, then add a new source, but without https:

    This means http://nuget.org/api/v2/.

    0 讨论(0)
  • 2020-12-04 19:49

    We had the same issue in work, and we resolved this by dropping the secure socket, Https -> http. This means you can use the V2 URL http://nuget.org/api/v2/.

    Possibly an issue getting rid of the secure socket, but the above URL (http://packages.nuget.org/v1/FeedService.svc/) is also unsecure.

    0 讨论(0)
  • 2020-12-04 19:50

    I had to remove https in Local machine settings for Nuget and added (http) it to user level in Tools -> Library Package Manager -> Package Manager Settings Choose Package Manager -> Package Sources.

    0 讨论(0)
  • 2020-12-04 19:50

    For me the problem was solved by clearing the nuget cache (and restarting VS)

    0 讨论(0)
  • 2020-12-04 19:56

    There's apparently an issue with the SSL cert on go.microsoft.com. Change the package source url to http://packages.nuget.org/v1/FeedService.svc/ and it should work just fine.

    0 讨论(0)
提交回复
热议问题