caddy_tls
Configure and inspect Caddy TLS/HTTPS settings: view current status, set ACME email, CA URL, or profile, and read Encrypted ClientHello configuration.
Instructions
Get or configure TLS/HTTPS settings. Actions: 'status' shows current TLS config, 'set_email' sets the ACME email, 'set_acme_ca' sets the ACME CA URL, 'set_acme_profile' sets the ACME profile (Caddy 2.10+), 'ech_status' reads the Encrypted ClientHello config (Caddy 2.10+, read-only here). Works on both fresh and existing Caddy instances. Writes target policies[0].issuers[0] only, and only when that issuer's module is 'acme' -- on a multi-policy TLS config, or one whose first issuer is 'internal' (Caddy's local CA), edit the intended issuer with caddy_config_set instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ca | No | ACME CA URL (for 'set_acme_ca' action) | |
| No | ACME email address (for 'set_email' action) | ||
| action | Yes | Action to perform | |
| profile | No | ACME profile name (for 'set_acme_profile'). Requires Caddy 2.10+ and a CA that offers profiles; Let's Encrypt uses 'shortlived' for 6-day certificates. Valid names are defined by the CA, not by Caddy. |