dotnet dev-certs is a .NET CLI command used to install and trust a development certificate so local HTTPS can protect application traffic. section 9.3
Trust a local development certificate
Run dotnet dev-certs https --trust during development. With app.UseHttpsRedirection() enabled, an HTTP request such as http://localhost:<port>/swagger/index.html receives a 307 temporary redirect to the HTTPS URL. section 9.3
Use the threat-model figure to see why unencrypted HTTP traffic requires HTTPS protection. section 9.3
