title: Nuget: This package is signed but not by a trusted signer
body: <p>I need your help please.</p>
  <p>My config:</p>
  <ul>
  <li>Visual Studio Community 2019</li>
  <li>Windows 10 x64 1909</li>
  </ul>
  <p>I want to download packages using nuget but I always get this f**ked error (see title).</p>
  <p>Structure of my solution folder:</p>
  <ul>
  <li>D:\MySln\
  <ul>
  <li>nuget.config</li>
  <li>nuget_packages</li>
  <li>HelloWorld\</li>
  <li>HelloSun\</li>
  </ul>
  </li>
  </ul>
  <p>My nuget.config file: <a href="https://docs.microsoft.com/en-us/nuget/reference/nuget-config-file" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/nuget/reference/nuget-config-file</a></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;configuration&gt;
      &lt;config&gt;
      &lt;!--
          Used to specify the default location to expand packages.
          See: nuget.exe help install
          See: nuget.exe help update
  
          In this example, %PACKAGEHOME% is an environment variable.
          This syntax works on Windows/Mac/Linux
      --&gt;
         &lt;add key=&quot;repositoryPath&quot; value=&quot;.\nuget_packages&quot; /&gt;
  
      &lt;!--
          Used to specify default source for the push command.
          See: nuget.exe help push
      --&gt;
          &lt;!--
          &lt;add key=&quot;defaultPushSource&quot; value=&quot;https://MyRepo/ES/api/v2/package&quot; /&gt;
      --&gt;
  
      &lt;!-- Proxy settings --&gt;
          &lt;add key=&quot;http_proxy&quot; value=&quot;host&quot; /&gt;
          &lt;add key=&quot;http_proxy.user&quot; value=&quot;username&quot; /&gt;
          &lt;add key=&quot;http_proxy.password&quot; value=&quot;encrypted_password&quot; /&gt;
      &lt;/config&gt;
  
      &lt;packageRestore&gt;
      &lt;!-- Allow NuGet to download missing packages --&gt;
          &lt;add key=&quot;enabled&quot; value=&quot;True&quot; /&gt;
  
      &lt;!-- Automatically check for missing packages during build in Visual Studio --&gt;
          &lt;add key=&quot;automatic&quot; value=&quot;True&quot; /&gt;
      &lt;/packageRestore&gt;
  
  &lt;!--
      Used to specify the default Sources for list, install and update.
      See: nuget.exe help list
      See: nuget.exe help install
      See: nuget.exe help update
  --&gt;
      &lt;packageSources&gt;
          &lt;add key=&quot;NuGet official package source&quot; value=&quot;https://api.nuget.org/v3/index.json&quot; /&gt;
          &lt;!--
          &lt;add key=&quot;MyRepo - ES&quot; value=&quot;https://MyRepo/ES/nuget&quot; /&gt;
          --&gt;
      &lt;/packageSources&gt;
  
  &lt;!-- Used to store credentials --&gt;
      &lt;packageSourceCredentials /&gt;
  
  &lt;!-- Used to disable package sources  --&gt;
      &lt;disabledPackageSources /&gt;
  
  &lt;!--
      Used to specify default API key associated with sources.
      See: nuget.exe help setApiKey
      See: nuget.exe help push
      See: nuget.exe help mirror
  --&gt;
      &lt;apikeys&gt;
          &lt;add key=&quot;https://MyRepo/ES/api/v2/package&quot; value=&quot;encrypted_api_key&quot; /&gt;
     &lt;/apikeys&gt;
  
  &lt;!--
      Used to specify trusted signers to allow during signature verification.
      See: nuget.exe help trusted-signers
  --&gt;
      &lt;trustedSigners&gt;
          &lt;author name=&quot;microsoft&quot;&gt;
              &lt;certificate fingerprint=&quot;3F9001EA83C560D712C24CF213C3D312CB3BFF51EE89435D3430BD06B5D0EECE&quot; hashAlgorithm=&quot;SHA256&quot; allowUntrustedRoot=&quot;false&quot; /&gt;
          &lt;/author&gt;
          &lt;repository name=&quot;nuget.org&quot; serviceIndex=&quot;https://api.nuget.org/v3/index.json&quot;&gt;
              &lt;certificate fingerprint=&quot;0E5F38F57DC1BCC806D8494F4F90FBCEDD988B46760709CBEEC6F4219AA6157D&quot; hashAlgorithm=&quot;SHA256&quot; allowUntrustedRoot=&quot;false&quot; /&gt;
              &lt;owners&gt;microsoft;aspnet;nuget&lt;/owners&gt;
          &lt;/repository&gt;
      &lt;/trustedSigners&gt;
  &lt;/configuration&gt;
  </code></pre>
  <p>I always have that error whether it's with nuget cli or with Visual Studio Nuget Package Manager.</p>
  <p>Thank you for helping !</p>