Check if any certificates are expiring soon
Domain name
Days before expiration to consider "expiring soon" (default: 30)
Expiration check result
Remove old certificates after rotation
Removes all certificates for the domain except the one with the specified tag.
Domain name
Certificate tag to keep
OptionaladminUrl: stringOptional Caddy admin URL
Number of certificates removed
Generate a certificate tag for a domain
Tags are in format: {domain}-{serial}-{timestamp}
Domain name
PEM-encoded certificate
Certificate tag
Inspect certificate metadata from PEM string
PEM-encoded certificate
Certificate information
Check if certificate expires soon
PEM-encoded certificate
Days before expiration (default: 30)
True if certificate expires within threshold
List all certificates for a domain
Queries Caddy configuration to find all certificates tagged with the domain.
Domain name
Array of certificates with metadata
Rotate certificate with zero downtime
Process:
Rotation options
Rotation result with new tag and cleanup count
Certificate Manager
Unified interface for certificate operations. Bundles certificate inspection, rotation, cleanup, and monitoring.
Example