/major-ai-skills:lets-encryptfrom major-ai-skills
Issue and renew Let's Encrypt DV certs with certbot/acme.sh; choose HTTP-01 vs DNS-01; use staging to avoid rate limits; wire reload hooks and monitor expiry.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Let's Encrypt issues Domain Validation (DV) certificates over the ACME protocol. A client (certbot, acme.sh, Caddy, etc.) creates an account key, requests an order, proves control of each identifier via a challenge, then downloads the cert. Agents must pick the right challenge, test on staging, automate renewal (not --force-renewal on a cron), reload TLS terminators only after success, and never commit private keys.
┌─────────────────────────────────────────────────────────────┐
│ ACME issuance loop │
│ │
│ Client (certbot / acme.sh) │
│ ├── Account key + order (identifiers) │
│ ├── Challenge │
│ │ ├── HTTP-01: GET :80 /.well-known/acme-challenge/… │
│ │ └── DNS-01: TXT _acme-challenge.<name> │
│ └── Cert + privkey → install → reload nginx/caddy/LB │
│ │
│ Ops │
│ ├── Staging directory while debugging │
│ ├── Timer/cron: renew (~2×/day); ARI when supported │
│ └── Monitor notAfter; backoff on failures │
└─────────────────────────────────────────────────────────────┘
Use when
Do not use when
@vault) or org CA.@vault).--manual for production renewals—prefer DNS plugins or HTTP webroot/nginx plugins.certbot renew ~twice daily; renew when ~⅓ lifetime remains (~30d for 90d certs); prefer ARI when the client supports it (rate-limit exempt).--deploy-hook / renewal-hooks/deploy must nginx -t && reload (or equivalent) only after success.600; directories owned by root or dedicated TLS user.# Issue (production only after staging dry-run path works)
sudo certbot certonly --webroot -w /var/www/html \
-d api.example.com \
--email [email protected] --agree-tos --no-eff-email
# nginx ssl_certificate /etc/letsencrypt/live/api.example.com/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/api.example.com/privkey.pem;
sudo tee /etc/letsencrypt/renewal-hooks/deploy/reload-nginx.sh >/dev/null <<'EOF'
#!/bin/sh
nginx -t && systemctl reload nginx
EOF
sudo chmod +x /etc/letsencrypt/renewal-hooks/deploy/reload-nginx.sh
sudo certbot renew --dry-run
sudo systemctl enable --now certbot.timer # distro unit name may vary
DNS-01 wildcard sketch (API token from environment—never hardcode):
export CF_Token="${CLOUDFLARE_API_TOKEN:?set scoped DNS edit token}"
# acme.sh example; prefer scoped zone token
acme.sh --issue --dns dns_cf -d example.com -d '*.example.com' \
--server letsencrypt
acme.sh --install-cert -d example.com \
--fullchain-file /etc/ssl/certs/example.fullchain.pem \
--key-file /etc/ssl/private/example.key \
--reloadcmd "nginx -t && systemctl reload nginx"
Expiry check:
echo | openssl s_client -connect api.example.com:443 -servername api.example.com 2>/dev/null \
| openssl x509 -noout -dates -subject
| Situation | Challenge |
|---|---|
| Public origin serves :80 | HTTP-01 |
Wildcard *.example.com | DNS-01 |
| CDN proxies / blocks :80 to origin | DNS-01 or CDN-managed certs |
| Many frontends | Central validation server or DNS-01 |
| Internal hostname only | Not LE → @vault PKI |
| Signature | Likely cause | Fix path |
|---|---|---|
| HTTP-01 timeout / connection refused | :80 closed, wrong vhost, CDN not forwarding challenge | Open :80; ensure /.well-known/acme-challenge/ bypasses auth/HTTPS-only traps; test from external network |
| HTTP-01 redirect loops / wrong host | Multi-server; challenge not on all nodes | Redirect challenges to one validation host or use DNS-01 |
| DNS-01 unauthorized / NXDOMAIN | Wrong TXT name/value; slow propagation; leftover TXT | Set _acme-challenge; wait/propagate; delete old TXT (size limits) |
too many certificates already issued / exact set limit | Reinstall loops; deleting ACME state and re-issuing | Use staging; wait for refill; change identifier set only if needed; prefer renew over new-order |
| Auth failures / hour | Repeated bad validation | Fix challenge on staging, then retry prod with backoff |
| Renew succeeds, browsers still show old cert | Reload hook missing / wrong path | Deploy hook reload; verify live paths vs nginx ssl_certificate |
| Wildcard issued, apex missing | Only *.example.com requested | Include both example.com and *.example.com when needed |
notAfter (synthetic HTTPS check or cert exporter); alert at 21/14/7 days.@nginx / @nginx-hardening — install fullchain/privkey and secure TLS config@cloudflare-dns — DNS-01 automation and proxied :80 pitfalls@vault — private PKI / secret storage for API tokens@docker — sidecars only with shared volume + careful renewal locking@github-actions — scheduled renew dry-runs and expiry monitors in CIMANDATORY: Use staging while debugging challenges. Prefer automated HTTP-01 or DNS API plugins over manual mode for renewals. Never commit private keys or DNS tokens. Wire deploy/reload hooks and prove
certbot renew --dry-run(or equivalent). Respect rate limits—fix validation before hammering production ACME.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.Other plugins' skills for the same job