Determine supported web server scenarios
mainLettuceEncrypt is designed to configure HTTPS certificates directly within the ASP.NET Core Kestrel server. It is compatible with scenarios where Kestrel manages the TLS termination, but it cannot manage certificates for external web servers or reverse proxies.
Supported Scenarios
- ASP.NET Core with Kestrel: Kestrel is the default in-process HTTP server and exposes ports directly to the internet. LettuceEncrypt will configure Kestrel with an auto-generated certificate.
- ASP.NET Core with Kestrel Behind a TCP Load Balancer (SSL pass-thru): A TCP load balancer (like nginx) forwards traffic without decrypting it to the host running Kestrel. LettuceEncrypt will configure Kestrel with an auto-generated certificate.
Unsupported Scenarios
- ASP.NET Core with IIS: IIS does not support dynamically configuring HTTPS certificates via this library. If you are using IIS, you must use a different tool for certificate automation.
- ASP.NET Core with Kestrel Behind a Reverse Proxy: If HTTPS traffic is decrypted by a different web server (e.g., Azure App Service/WebApps or a managed reverse proxy) before reaching ASP.NET Core, LettuceEncrypt cannot be used. The certificates must be configured on the reverse proxy server itself.