Issues, renews, and troubleshoots TLS certificates in Kubernetes with cert-manager, ACME issuers, and the cmctl CLI.
Agentic Workflow: Read -> Reason -> Act (cert-manager-security)
You are cert-manager-security (security/general) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — security context for cert-manager-security
- Domain: Issues, renews, and troubleshoots TLS certificates in Kubernetes with cert-manager, ACME issuers, and the cmctl CLI.
- cmctl-management: Inspect and manage certificates, issuers, and renewals with cmctl. —
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/
- acme-issuer-setup: Configure ClusterIssuers with Let's Encrypt and manage issuance resources. —
kubectl get clusterissuers
- Check
knowledge and prerequisites: cmctl, kubectl
2. Reason — think for cert-manager-security
- For
cmctl-management: Inspect and manage certificates, issuers, and renewals with cmctl. — decide which checks to run
- For
acme-issuer-setup: Configure ClusterIssuers with Let's Encrypt and manage issuance resources. — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with cert-manager-security tools
- Tools:
Glob, Grep, Read, Bash, Cmctl (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
cert-manager-security:19ac58ac
cert-manager
Automatic TLS certificate issuance and renewal in Kubernetes using cert-manager.
What This Skill Does
- Installs cert-manager and verifies the API is available
- Creates ClusterIssuers for ACME (Let's Encrypt), CA, and self-signed backends
- Issues Certificate resources and tracks their lifecycle
- Forces renewals and debugs ACME order/challenge failures
When to Use
- A cluster needs automatic HTTPS for ingresses
- Certificates fail to issue or renew
- An issuer needs switching (staging to production Let's Encrypt)
Real Commands
# Install
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.15.0/cert-manager.yaml
cmctl check api
# Issuer and certificate status
kubectl get clusterissuers
kubectl get certificates -A
kubectl describe certificate example-tls
cmctl status certificate example-tls
# Debug ACME
kubectl get orders.acme.cert-manager.io
kubectl get challenges.acme.cert-manager.io
kubectl get certificaterequests -A
# Operations
cmctl renew example-tls
cmctl renew --all
Sample Certificate
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: example-tls
namespace: istio-system
spec:
secretName: example-tls
dnsNames:
- example.com
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
Best Practices
- Use ClusterIssuer for shared issuers, Issuer for namespace-scoped control
- Start with the staging ACME server to avoid rate limits
- Enable the HTTP-01 solver via an ingress class annotation or DNS-01 for wildcards
- Monitor certificate expiry with cert-manager's built-in metrics
- Pin the cert-manager release and upgrade via helm to match CRD versions
Capabilities
cmctl-management
Inspect and manage certificates, issuers, and renewals with cmctl.
Parameters:
name (string): Certificate resource name
namespace (string): Namespace of the certificate
Commands:
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.15.0/cert-manager.yaml
kubectl get certificates -A
kubectl describe certificate example-tls
cmctl check api
cmctl renew example-tls
cmctl status certificate example-tls
Examples:
- kubectl get certificates -A
- cmctl status certificate example-tls
- cmctl renew --all
acme-issuer-setup
Configure ClusterIssuers with Let's Encrypt and manage issuance resources.
Parameters:
Commands:
kubectl get clusterissuers
kubectl apply -f cluster-issuer-letsencrypt.yaml
kubectl get orders.acme.cert-manager.io
kubectl get challenges.acme.cert-manager.io
kubectl get certificaterequests
Examples:
- kubectl apply -f cluster-issuer-letsencrypt.yaml
- kubectl get orders.acme.cert-manager.io -n istio-system
- kubectl get certificaterequests -A
References
1---2name: "cert-manager-security"3description: "Issues, renews, and troubleshoots TLS certificates in Kubernetes with cert-manager, ACME issuers, and the cmctl CLI. Use when working with cmctl management, acme issuer setup, security or when the user mentions cmctl management, acme issuer setup, security."4license: "MIT"5compatibility: "Requires cmctl, kubectl. Needs network access."6metadata:7 source: https://skillmd.com/skills/opknock/cert-manager-security8 author: Kdesk9 version: 2.0.010 category: security11allowed-tools: "Glob Grep Read Bash(cmctl:*) Bash(kubectl:*)"12---1314Issues, renews, and troubleshoots TLS certificates in Kubernetes with cert-manager, ACME issuers, and the cmctl CLI.1516## Agentic Workflow: Read -> Reason -> Act (cert-manager-security)1718You are **cert-manager-security** (security/general) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — security context for `cert-manager-security`21- Domain: Issues, renews, and troubleshoots TLS certificates in Kubernetes with cert-manager, ACME issuers, and the cmctl CLI.22- **cmctl-management**: Inspect and manage certificates, issuers, and renewals with cmctl. — `kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/`23- **acme-issuer-setup**: Configure ClusterIssuers with Let's Encrypt and manage issuance resources. — `kubectl get clusterissuers`24- Check `knowledge` and `prerequisites: cmctl, kubectl`2526### 2. Reason — think for `cert-manager-security`27- For `cmctl-management`: Inspect and manage certificates, issuers, and renewals with cmctl. — decide which checks to run28- For `acme-issuer-setup`: Configure ClusterIssuers with Let's Encrypt and manage issuance resources. — decide which checks to run29- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs3031### 3. Act — execute with `cert-manager-security` tools32- Tools: `Glob`, `Grep`, `Read`, `Bash`, `Cmctl` (see frontmatter `tools`/`allowed-tools`)33- Use `safe_path` for any write; record evidence (paths, checksums)34- Fingerprint: `cert-manager-security:19ac58ac`3536# cert-manager3738Automatic TLS certificate issuance and renewal in Kubernetes using cert-manager.3940## What This Skill Does4142- Installs cert-manager and verifies the API is available43- Creates ClusterIssuers for ACME (Let's Encrypt), CA, and self-signed backends44- Issues Certificate resources and tracks their lifecycle45- Forces renewals and debugs ACME order/challenge failures4647## When to Use4849- A cluster needs automatic HTTPS for ingresses50- Certificates fail to issue or renew51- An issuer needs switching (staging to production Let's Encrypt)5253## Real Commands5455```bash56# Install57kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.15.0/cert-manager.yaml58cmctl check api5960# Issuer and certificate status61kubectl get clusterissuers62kubectl get certificates -A63kubectl describe certificate example-tls64cmctl status certificate example-tls6566# Debug ACME67kubectl get orders.acme.cert-manager.io68kubectl get challenges.acme.cert-manager.io69kubectl get certificaterequests -A7071# Operations72cmctl renew example-tls73cmctl renew --all74```7576## Sample Certificate7778```yaml79apiVersion: cert-manager.io/v180kind: Certificate81metadata:82 name: example-tls83 namespace: istio-system84spec:85 secretName: example-tls86 dnsNames:87 - example.com88 issuerRef:89 name: letsencrypt-prod90 kind: ClusterIssuer91```9293## Best Practices9495- Use ClusterIssuer for shared issuers, Issuer for namespace-scoped control96- Start with the staging ACME server to avoid rate limits97- Enable the HTTP-01 solver via an ingress class annotation or DNS-01 for wildcards98- Monitor certificate expiry with cert-manager's built-in metrics99- Pin the cert-manager release and upgrade via helm to match CRD versions100101## Capabilities102103### cmctl-management104Inspect and manage certificates, issuers, and renewals with cmctl.105106**Parameters:**107- `name` (string): Certificate resource name108- `namespace` (string): Namespace of the certificate109110**Commands:**111- `kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.15.0/cert-manager.yaml`112- `kubectl get certificates -A`113- `kubectl describe certificate example-tls`114- `cmctl check api`115- `cmctl renew example-tls`116- `cmctl status certificate example-tls`117118**Examples:**119- kubectl get certificates -A120- cmctl status certificate example-tls121- cmctl renew --all122123### acme-issuer-setup124Configure ClusterIssuers with Let's Encrypt and manage issuance resources.125126**Parameters:**127- `issuerFile` (string): ClusterIssuer manifest path128- `server` (string): ACME directory URL, e.g. https://acme-v02.api.letsencrypt.org/directory129130**Commands:**131- `kubectl get clusterissuers`132- `kubectl apply -f cluster-issuer-letsencrypt.yaml`133- `kubectl get orders.acme.cert-manager.io`134- `kubectl get challenges.acme.cert-manager.io`135- `kubectl get certificaterequests`136137**Examples:**138- kubectl apply -f cluster-issuer-letsencrypt.yaml139- kubectl get orders.acme.cert-manager.io -n istio-system140- kubectl get certificaterequests -A141142## References143- [cert-manager Documentation](https://cert-manager.io/docs/)144- [cmctl Reference](https://cert-manager.io/docs/usage/cmctl/)