title: Asp.net core keep using the expired certificate
body: <p>Recently, my localhost certificate is expired, I have gone to &quot;sertmgr.msc&quot; remove all localhost certificate and restart the VS and add a new localhost certificate to windows.
  But when am I running my application again, still use the old expired certificate not the new one, does anyone know how to fix that?
  I have already run the command show below.</p>
  <pre class="lang-sh prettyprint-override"><code>dotnet dev-certs https --clean
  dotnet dev-certs https --trust
  </code></pre>
  <p><a href="https://i.stack.imgur.com/nRVNq.png" rel="noreferrer">Expired Cert</a>
  <a href="https://i.stack.imgur.com/QE2Kj.png" rel="noreferrer">Cert In Cert Manage</a></p>