security:certbot_automation
Differences
This shows you the differences between two versions of the page.
| security:certbot_automation [2026/06/17 14:23] – created - external edit 127.0.0.1 | security:certbot_automation [2026/06/17 14:25] (current) – privacyl0st | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Certbot TLS Lifecycle Orchestration ====== | ||
| + | Certbot automates the generation and renewal of Let's Encrypt SSL/TLS certificates. By integrating it with your NGINX proxy, your public-facing traffic becomes fully encrypted, and your web browser will display the trusted padlock icon. | ||
| + | |||
| + | ===== 1. Installation ===== | ||
| + | Install the Certbot client and its native NGINX plugin on the Edge Proxy (VM-D / Raspberry Pi). | ||
| + | |||
| + | <file bash> | ||
| + | sudo apt update && sudo apt install certbot python3-certbot-nginx -y | ||
| + | </ | ||
| + | |||
| + | ===== 2. Certificate Generation (HTTP-01 Challenge) ===== | ||
| + | The standard generation process temporarily spins up a validation file on port 80 to prove you own the domain. | ||
| + | |||
| + | // | ||
| + | |||
| + | Execute the automated NGINX integration: | ||
| + | < | ||
| + | |||
| + | During the interactive prompt: | ||
| + | * Provide a valid administrative email for expiration notices. | ||
| + | * Agree to the Terms of Service. | ||
| + | * **CRITICAL: | ||
| + | |||
| + | ===== 3. NGINX SSL Configuration Validation ===== | ||
| + | Certbot automatically modifies your NGINX server block to listen on Port 443 and applies the certificates. To ensure your custom high-security ciphers are active, open the site block again: | ||
| + | |||
| + | < | ||
| + | |||
| + | Verify that Certbot injected the SSL paths, and manually append your custom snippet directly beneath them: | ||
| + | <file bash> | ||
| + | ssl_certificate / | ||
| + | ssl_certificate_key / | ||
| + | include / | ||
| + | </ | ||
| + | |||
| + | Reload NGINX: `sudo systemctl reload nginx` | ||
| + | |||
| + | ===== 4. Automated Renewal Timer ===== | ||
| + | Let's Encrypt certificates expire every 90 days. Certbot establishes a `systemd` timer automatically, | ||
| + | |||
| + | < | ||
| + | |||
| + | To perform a dry-run to ensure the renewal process works without hitting API rate limits: | ||
| + | < | ||
| + | |||
| + | **Next Step:** With the perimeter secured, begin Day-2 operations mapping starting with [[operations: | ||
security/certbot_automation.1781706187.txt.gz · Last modified: by 127.0.0.1
