Design an SSL Certificate Management Service

Hard45 min
1 / 30
System design answer

Design an SSL Certificate Management Service

Hard45 min30 sections
understanding•11 min read

Problem Statement: Certificate Lifecycle at Fleet Scale

Frames SSL certificate management as a distributed automation platform, not a one-off openssl command.

Problem statement

Design an SSL Certificate Management Service that automates the full lifecycle of TLS certificates across an organization's entire domain portfolio: requesting, validating, issuing, deploying, monitoring, renewing, and revoking certificates for hundreds to thousands of domains, subdomains, and internal services. The platform must integrate with public Certificate Authorities via the ACME protocol (RFC 8555), support wildcard and multi-SAN certificates, manage private keys in hardware security modules, distribute certificates to edge nodes and load balancers without downtime, and alert operators before any certificate expires.

This is not a cron job that runs certbot. A certificate management service at scale is a distributed coordination platform that must handle concurrent issuance across multiple CAs, manage cryptographic key material securely, orchestrate zero-downtime deployment to thousands of endpoints, maintain an auditable chain of custody for every private key, and survive CA outages without blocking renewals.

Why the problem is distinctive

A web application can retry a failed API call. A certificate expiry cannot be retried after the fact—it causes immediate, user-visible outage. The design therefore separates issuance success from deployment safety. Issuance is an eventually-progressing workflow: requested, validated, issued, deployed, or failed. Deployment safety is an invariant: a live endpoint must never serve an expired or mismatched certificate. If a renewal fails, the safe response is to retry with backoff and alert—not to let the old certificate expire silently.

The problem requires automated ACME challenges, renewal scheduling, revocation on compromise, wildcard and multi-SAN support, HSM-backed key storage, high reliability with zero downtime from expired certs, scalability to hundreds of domains, and CA/B Forum compliance. The field shapes and multilingual code contract follow the uploaded metadata.

Public operating baseline versus design assumptions

Public evidence establishes that the category is operationally critical. Let's Encrypt reports issuing over 3 million certificates per day and serving more than 300 million active certificates as of 2025. Cloudflare manages over 25 million active certificates for its customers. Venafi reports that 69% of organizations have experienced at least one certificate-related outage. These are cited company figures, not requirements for our fictional system.

For capacity planning, this answer explicitly assumes a mature enterprise platform with 50,000 registered domains, 200,000 active certificates, 500 renewal operations per day at peak, and a five-times event multiplier for mass-expiry scenarios. Unless a number is tied to a citation, it is a stated design assumption, target, budget, or illustrative threshold—not a claim about any company's private architecture.

The four architectural planes

  1. Issuance plane: ACME client orchestration, domain validation challenges, CA interaction, certificate chain assembly.
  2. Key management plane: private key generation, HSM storage, key rotation, access control, cryptographic operations.
  3. Distribution plane: zero-downtime deployment to CDN edges, load balancers, service meshes, internal services, and IoT endpoints.
  4. Governance plane: monitoring, alerting, audit logging, compliance reporting, revocation, and policy enforcement.

A strong interview answer keeps these planes separate. It allows the distribution plane to degrade without weakening key security, and it permits the governance plane to enforce policy without blocking issuance during CA outages.

Key Highlights

  • •The cloud orchestrates issuance and distribution, but private keys never leave the HSM boundary in plaintext.
  • •Model certificate progress as a durable workflow and deployment safety as a continuously evaluated invariant.
  • •Public platform figures provide context; every uncited scale or SLO in this answer is an explicit design assumption.
  • •The architecture has four planes: issuance, key management, distribution, and governance.
  • •A failed renewal that triggers an alert is a successful safety outcome; a silent expiry is a catastrophic failure.
Lead With the Key Security Boundary
State in the first two minutes that private keys are generated inside and never leave the HSM in plaintext. This instantly distinguishes a production-grade certificate platform from a certbot wrapper script.
Do Not Design a Cron Job
A design where a single script runs certbot on a schedule cannot handle concurrent renewals, CA rate limits, multi-region deployment, or key security. It will fail a serious interview.

Section Rescue Kit

Buzzwords to use:

ACME ProtocolCertificate Transparency

Safe statements:

  • "I will separate certificate issuance from deployment: the former may retry against a CA, while the latter must never cause downtime."
  • "Before selecting services, let me define which operations touch private keys, which touch certificates only, and which require human approval."
Design an SSL Certificate Management Service - System Design | WinJob | WinJob