Obtain Certificate
AI-generatedSummary
Obtain a new SSL certificate from Let's Encrypt using Certbot with Cloudflare DNS-01 validation by providing domain names and registration details.
Inputs
- Use Sudo — Whether to prepend "sudo" to the certbot command
- Domains (required) — Comma-separated list of domain names to include in the certificate
- Email (required) — Email address for Let's Encrypt registration and renewal notices
- Certificate Name — Name for the certificate (defaults to first domain if empty)
- Key Type — Type of private key to generate: ECDSA (recommended) or RSA
- Server — Let's Encrypt ACME server to use: Production or Staging for testing
- Force Renewal — Whether to force certificate renewal even if not due
- Propagation Seconds — Seconds to wait for DNS propagation before validation
- Additional Arguments — Additional raw arguments to pass to certbot (trusted input only)
Output shape
a single JSON object
The output JSON contains 'success' (boolean), 'certificatePath' (string path to the saved certificate), 'privateKeyPath' (string path to the private key), 'expiryDate' (string in YYYY-MM-DD format), and 'rawOutput' (string) representing the full Certbot CLI output.
Examples
Example 1: Request a new certificate for example.com and www.example.com using a Cloudflare DNS API token
Set 'Domains' to 'example.com, www.example.com', provide 'Email', optionally name the certificate, ensure 'Use Sudo' is false or true depending on environment, select key type and server, and run to obtain certificate files.