title: How to resolve nuget error SSL connection on Linux Mint 20?
body: <p>I am getting an error when I try to load a simple project using .NET 5.0.
  Apparently, it is on the Nuget package.</p>
  <p>All answers which I have searched not worked for me, their problems it seems because of proxy settings. Be noticed that I am not under a proxy which means I have full access to all websites including de nuget.org</p>
  <p>I am just doing this:</p>
  <p><code> dotnet run</code></p>
  <p>and aI getting these errors:</p>
  <p><code>dotnet/sdk/5.0.101/NuGet.targets(131,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json.</code></p>
  <p><code>dotnet/sdk/5.0.101/NuGet.targets(131,5): error :   The SSL connection could not be established, see inner exception.</code></p>
  <p><code>dotnet/sdk/5.0.101/NuGet.targets(131,5): error :   The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot</code></p>
  <p>I believe is something because of the TLS certificate, not sure.</p>
  <p>Important Tips:
  On .Net Core 3.1 works
  I am using Linux Mint 20 (Based on Ubuntu)</p>
  <p><strong>My OpenSSL config:</strong></p>
  <p><code>OpenSSL 1.1.1g  21 Apr 2020</code></p>
  <p><strong>Here the output of my .net info</strong></p>
  <pre><code> Version:   5.0.101
   Commit:    d05174dc5a
  
  Runtime Environment:
   OS Name:     linuxmint
   OS Version:  20
   OS Platform: Linux
   RID:         linux-x64
   Base Path:   /usr/share/dotnet/sdk/5.0.101/
  
  Host (useful for support):
    Version: 5.0.1
    Commit:  b02e13abab
  
  .NET SDKs installed:
    2.1.811 [/usr/share/dotnet/sdk]
    2.2.402 [/usr/share/dotnet/sdk]
    3.1.404 [/usr/share/dotnet/sdk]
    5.0.101 [/usr/share/dotnet/sdk]
  
  .NET runtimes installed:
    Microsoft.AspNetCore.All 2.1.23 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
    Microsoft.AspNetCore.All 2.2.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
    Microsoft.AspNetCore.App 2.1.23 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
    Microsoft.AspNetCore.App 2.2.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
    Microsoft.AspNetCore.App 3.1.10 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
    Microsoft.AspNetCore.App 5.0.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
    Microsoft.NETCore.App 2.1.23 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
    Microsoft.NETCore.App 2.2.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
    Microsoft.NETCore.App 3.1.10 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
    Microsoft.NETCore.App 5.0.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App]```
  
  
  </code></pre>