Nuget Install-Package error

Damir Dobric Posts

Next talks:



Follow me on Twitter: #ddobric




When trying to install the NuGet package you might experience following error:

PM> install-package *package name*

Install-Package : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
At line:1 char:16
+ install-package <<<<  AspNetWebApi
    + CategoryInfo          : NotSpecified: (:) [Install-Package], WebException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

This error is caused by untrusted RapidSSL CA certificate, which is used to sign the NuGet package.


Usually is this certification root trusted. If not put it in Trusted Root Certification Authorities.

Mote that this error can often happen if the Fiddler is running in the background an Fiddler’s certificate is not trusted. In this case either just close the fiddler or trust its certificate.

Posted Jul 25 2012, 06:44 PM by Damir Dobric
Filed under: , is a .Net Community Blog powered by daenet GmbH.