Let's Encrypt built a custom Go program to host test certificate websites required for publicly trusted Certificate Authorities. The challenge: maintaining valid, expired, and revoked certificates simultaneously — especially keeping a revoked certificate non-expired. The solution uses the Lego ACME library for certificate issuance and revocation, polls CRLs to confirm revocation status, stores 'next' certificates with staged rollout delays (24h+ for revoked, waiting past expiry for expired), and uses Go's built-in TLS stack with a GetCertificate callback for SNI-based certificate selection. The project is open-source and available for other CAs to use.

6m read timeFrom letsencrypt.org
Post cover image
Table of contents
The websitesThe ingredients to bake a cakeVisiting the sitesThe code

Sort: