TLS certificates

← Protocols and TLS

Certificate modes

tls.mode = "off" · default
Serves plain HTTP/1.1. Explicit HTTP/2 and HTTP/3 selections require one of the certificate modes below.
"local"
Creates a development CA and a certificate covering tls.local.domains, initially localhost, 127.0.0.1 and ::1. tls.local.trust_ca defaults to "ask" in interactive use. Set it to "off" to skip the trust prompt.
"files"
Set both tls.files.certificate and tls.files.private_key to readable PEM files. The certificate chain starts with the leaf certificate. Relative paths resolve from the profile directory.
"letsencrypt"
Requires PHP cURL, public DNS names in tls.acme.domains and an account contact in tls.acme.email. Route public TCP port 80 to tls.acme.port for HTTP-01 validation. Keep that listener distinct from the application port. Choose staging for setup, then production for a publicly trusted certificate.

Certificate storage and renewal

tls.storage defaults to ../var/tls. Keep this private directory persistent across deployments for managed certificate and account material. tls.renew_before_days defaults to provider policy. An explicit value from 1 to 365 chooses the renewal window.

Use an HTTPS certificate