A certificate enables HTTPS by securing communication between a client and service. Publicly exposed applications need a certificate from a trusted authority; development can use the .NET development certificate. section 9.3
Apply certificates according to the deployment environment:
- Install a trusted certificate for a publicly exposed service. section 9.3
- Run `dotnet dev-certs https --trust` to install a trusted development certificate. section 9.3
- Combine HTTPS certificates with `app.UseHttpsRedirection()` when HTTP requests should redirect to HTTPS. section 9.3
Development HTTPS
Install the development certificate with `dotnet dev-certs https --trust`, then verify that an HTTP request receives a 307 redirect with an HTTPS `Location` header. section 9.3
Shows the interception threat that HTTPS and certificates address. section 9.3














