When a web project is created, Visual Studio automatically generates a SSL certificate and prompts you to install it. Everything works fine.
That certificate has now expired and I cannot figure out how to get it to re-generate one and start the process over again. I've tried deleting all existing localhost
certificates from the certificate store and deleting secrets.json, but nothing seems to force it to re-start the generation process.
I finally figured it out.
For anyone else who runs into this, the steps to fix it are:
localhost
certificates must be deleted in certificate manager. They can be found in Personal and Trusted Root\Users\[user]\AppData\Roaming\Microsoft\UserSecrets\
dotnet dev-certs https --clean
to clean all existing certificatesdotnet dev-certs https --trust
to create and install a new one with the prompt to trustIt will work after this again.