Issue a Let's Encrypt certificate
runcloud_install_letsencrypt_sslDestructive
WRITE: issue and install a free Let's Encrypt certificate for a web application (basic SSL) or for one domain of it (advanced SSL, pass domain_id; this requires advanced SSL mode, see runcloud_get_ssl_method). The web server is reloaded; the domain's DNS must already point at the server. Custom certificates are not supported here. POST /servers/{id}/webapps/{webapp}/ssl or /domains/{domain}/ssl.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain_id | No | Only for advanced (per-domain) SSL mode (see runcloud_get_ssl_method): the domain's id. | |
| server_id | Yes | RunCloud server id (see runcloud_list_servers). | |
| webapp_id | Yes | Web application id (see runcloud_list_webapps). | |
| enable_hsts | Yes | Send the HSTS header (browsers will insist on HTTPS). | |
| enable_http | Yes | Keep plain HTTP enabled alongside HTTPS. | |
| environment | No | live (default, trusted certificate) or staging (test certificate). | |
| external_api | No | Id of the Cloudflare DNS integration; required for dns-01. | |
| authorization_method | Yes | Let's Encrypt challenge: http-01, or dns-01 (needs external_api, a Cloudflare DNS integration). |