certificate_create_letsencrypt
Create a Let's Encrypt SSL certificate for an existing site. Supports HTTP-01 and DNS-01 challenges. Requires public DNS and site accessibility.
Instructions
Issue a Let's Encrypt SSL certificate for an existing site. This is ASYNC — response returns immediately with status 'CREATING'. Poll queue_active to track issuance progress. REQUIREMENTS: site must be publicly accessible with correct DNS for HTTP-01 challenge to succeed. WRITE operation — confirm:true to execute.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Contact email for Let's Encrypt registration | ||
| confirm | No | ||
| dry_run | No | ||
| site_id | Yes | Site id from sites_list (maps to 'virtualhost' in API) | |
| key_length | No | RSA key length | |
| common_name | Yes | Primary domain for the certificate (CN) | |
| alternative_names | No | Additional SAN domains. If empty, will be set to [common_name]. | |
| force_dns_validation | No | Use DNS-01 challenge instead of HTTP-01 (required for wildcard certs) |