title: After running dev-certs https --trust, dotnet run complains that the default developer certificate could not be found
body: <p>We read <a href="https://docs.microsoft.com/en-us/aspnet/core/security/enforcing-ssl?view=aspnetcore-5.0&amp;tabs=visual-studio#trust-the-aspnet-core-https-development-certificate-on-windows-and-macos" rel="nofollow noreferrer">this documentation</a>.</p>
  <p>We ran the following in PowerShell:</p>
  <pre><code>dotnet dev-certs https --clean
  dotnet dev-certs https --trust
  dotnet dev-certs https --check # none found :-(
  </code></pre>
  <p>Then we opened a new PowerShell session and ran this:</p>
  <pre><code>dotnet dev-certs https --check # still none found :-(
  dotnet run
  </code></pre>
  <p>This is the error message.</p>
  <blockquote>
  <p><code>System.InvalidOperationException</code>: Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found or is out of date.</p>
  </blockquote>
  <p>Here is the output of <code>dotnet --info</code></p>
  <pre><code>.NET SDK (reflecting any global.json):
   Version:   5.0.302
   Commit:    c005824e35
  
  Runtime Environment:
   OS Name:     Windows
   OS Version:  10.0.19042
   OS Platform: Windows
   RID:         win10-x64
   Base Path:   C:\Program Files\dotnet\sdk\5.0.302\
  
  Host (useful for support):
    Version: 5.0.8
    Commit:  35964c9215
  </code></pre>
  <p>How can we point <code>dotnet run</code> to the certificate that we created with <code>dotnet dev-certs https --trust</code>?</p>