This commit is contained in:
Mateusz Gruszczyński committed 2026-11-22 15:35:11 +01:00
1 parent 748fe1d146
commit 27b640a0df
22 files changed
+532 -30

No files matched your search

+20
View File
@@ -52,6 +52,26 @@ Provider tokens and TSIG secrets are security credentials: use least privilege,
Managed certificates have configurable automatic renewal. RustProxy runs the scheduler while the service is active; this is **not** a separate cron service. Certificate status and next checks are visible in Certificates. The scheduler uses spaced checks and retry/backoff on failure, without automatically forcing a CA reissue on every check.
### Checking now or forcing a renewal
Each managed certificate in **Certificates → Automatic renewal** has three actions:
- **Check now** — runs `certbot renew` for that profile; Certbot decides whether the certificate is due (result `acme.not_due` otherwise).
- **Force renewal now** (since 0.40.1) — runs `certbot renew --force-renewal`, so a new certificate is requested from the CA even if the current one is far from expiry. Use it after a key compromise, a CA revocation, or when the names or chain must change immediately. The action asks for confirmation because every forced certificate counts against the CA rate limits (Let's Encrypt: 5 certificates for the same names per week). The current certificate stays active until the new pair is validated and deployed; the audit log records `acme.renew_forced`.
- **Validate renewal (dry run)** — tests the challenge against the staging CA and deploys nothing.
The same is available through the API and the local CLI:
```bash
# API (session or API token with certificate permissions)
curl -X POST https://admin.example.com/api/acme/renew -H 'content-type: application/json' \
-d '{"certificate_id":"site","force":true}'
# local CLI on the server (uses the administration listener)
sudo rust-proxy --data-dir /var/lib/rustproxy tls renew --id site --force
```
`force` cannot be combined with `dry_run`. The renewal runs in the background; the job and the result are shown in the panel. Headless mode has its own command, see [Headless: forcing a new certificate](HEADLESS.md#forcing-a-new-certificate-tls-renew---force).
After successful renewal, RustProxy validates the new pair and publishes it to new TLS handshakes without interrupting existing connections. Invalid/rejected material should leave the previous active pair in place. Keep room for archived ACME generations and monitor expiry; this is not an independent external expiry-alert service. **Do not run an overlapping system Certbot timer** against the RustProxy-managed ACME profiles.
## Externally managed Certbot / PEM files