Server certificate configuration
To enable TLS, server certificate with private key must be provided.
Default configuration accepts .pfx certificate file.
1. Prepare TLS server certificate file
Steps to configure server certificate:
- Generate TLS server certificate as needed for the server;
- Store the server certificate as
.pfxfile- Store it in the
certificates/tlsdirectory with nameserver-certificate.pfx.
- Store it in the
2. Provide .pfx password in configuration, if needed
note
If .pfx without password is used, this step can be skipped.
- Open
appsettings.json - Find the
Kestrelconfiguration section - Provide actual certificate password in the
Passwordfield (Kestrel --> Endpoint --> Https --> Certificate --> Password).