TLS certificates
← Protocols and TLSCertificate 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_cadefaults to"ask"in interactive use. Set it to"off"to skip the trust prompt. "files"- Set both
tls.files.certificateandtls.files.private_keyto 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.domainsand an account contact intls.acme.email. Route public TCP port 80 totls.acme.portfor HTTP-01 validation. Keep that listener distinct from the application port. Choosestagingfor setup, thenproductionfor 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.