Tips and Tricks

How to trust ASP.NET Core Development Certificates

tips_tricks

After installing Visual Studio and trying to run your first ASP.NET Core project, you may encounter an error, saying that the page is not secure and that your connection is not private.

To resolve this problem, run the following command in your Command Prompt Window:

dotnet dev-certs https --trust
This command trusts the certificate by registering it in the operating system’s certificate store.
After running this command, restart your browser, by killing its instances in processes in Task Manager, if needed.