agentleFS
NikoxkxNikoxkx/Agent-Skills/skills/devops/ssl-certificate-manager/SKILL.md

ssl-certificate-manager

Skill1 starsChanged 5 months agoApache-2.0View on GitHub

Manages SSL/TLS certificates including provisioning, renewal, and multi-domain setup. Use when configuring HTTPS for any domain.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use --deploy-hook to reload Nginx or restart services after successful renew.

    line 45
  2. Distinctive:

    Create Issuer or ClusterIssuer (Let's Encrypt production/staging).

    line 49
  3. Distinctive:

    Create Certificate resources or use annotations on Ingress.

    line 50
  4. Very specific:

    Check certificate expiry (e.g., with certbot certificates or Prometheus blackbox / cert-exporter).

    line 54
  5. Very specific:

    Rate limits: Use staging for testing (--staging), respect 50 certs/week per domain for production.

    line 73
  6. Distinctive:

    Certificate not picked up: Check file permissions and service reload.

    line 75

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Overview

Manages the full lifecycle of SSL/TLS certificates: provisioning via Let's Encrypt (HTTP-01 and DNS-01 challenges), wildcard certificates, automated renewal, Kubernetes cert-manager integration, monitoring of expiry, and troubleshooting failed renewals. Includes cron jobs, hooks, and multi-domain (SAN) setups.

When to Use This Skill

  • Adding HTTPS to a domain or subdomain for the first time.
  • Setting up wildcard certs (*.example.com).
  • Automating renewal for many certificates.
  • Deploying to Kubernetes.

Prerequisites

  • Domain control (DNS or web server for challenge).
  • For DNS challenge: API access to DNS provider (Cloudflare, Route53, etc.).
  • Nginx, Caddy, or ingress controller that can use the certificates.

Steps

  1. Choose challenge type:
    • HTTP-01: Easy for single domains when you control the web server.
    • DNS-01: Required for wildcards and when you don't want to expose port 80.
  2. Provision with certbot (standalone or webroot):
    certbot certonly --nginx -d example.com -d www.example.com
    # or DNS
    certbot certonly --dns-cloudflare -d '*.example.com' -d example.com
  3. Automated renewal:
    • certbot renew runs twice a day via systemd timer or cron.
    • Use --deploy-hook to reload Nginx or restart services after successful renew.
  4. Kubernetes (cert-manager):
    • Install cert-manager.
    • Create Issuer or ClusterIssuer (Let's Encrypt production/staging).
    • Create Certificate resources or use annotations on Ingress.
    • Wildcard via DNS01 solver with Cloudflare or Route53 secret.
  5. Monitoring & alerting:
    • Check certificate expiry (e.g., with certbot certificates or Prometheus blackbox / cert-exporter).
    • Alert when < 30 days remaining.
  6. Multi-domain (SAN):
    • List all domains in one certificate when they share the same server.
  7. Output:
    • Exact certbot commands for the domains.
    • Systemd timer or cron for renewal + deploy hook.
    • cert-manager YAML for Kubernetes.
    • Expiry monitoring script or Prometheus rule.
    • Troubleshooting steps for common renewal failures (rate limits, DNS propagation, webroot path wrong).

Examples

Full certbot commands for single + wildcard, a production renewal cron with deploy hook that reloads Nginx, and a complete cert-manager setup for a Kubernetes Ingress with wildcard are included.

Edge Cases & Error Handling

  • Rate limits: Use staging for testing (--staging), respect 50 certs/week per domain for production.
  • DNS propagation: For DNS-01, wait or use a provider with fast propagation.
  • Certificate not picked up: Check file permissions and service reload.
  • Revocation: Have a process to revoke and re-issue if key is compromised.

Verification

  1. https://example.com shows a valid certificate (padlock, not self-signed).
  2. certbot certificates shows the cert and next renewal date.
  3. Renewal test: certbot renew --dry-run succeeds.
  4. In Kubernetes: kubectl get certificate shows Ready=True.
  5. Expiry alert would fire if the cert were close to expiring.
  6. Success: All domains have valid, auto-renewing certificates with >30 days validity at all times.

References

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.