---
title: "That Old Certificate Expired and Started an Outage. This is What Happened Next"
description: "When Let's Encrypt's old root certificate expired on September 30, 2021, Shopify's internal service-to-service HTTPS calls began failing because the Ruby httpclient gem, pulled in transitively by rack-oauth2, openid_connect and google-api-client, ships its own six-year-old cacert.pem that trusted neither the expired root nor the new one."
url: "https://swe.quest/articles/that-old-certificate-expired-and-started-an-outage-this-is-what-happened-next-8e9755960d247908"
canonical: "https://shopify.engineering/that-old-certificate-expired-and-started-an-outage-this-is-what-happened-next"
source: "Shopify Engineering"
published: "2022-01-12"
difficulty: "medium"
kind: "Incident"
reading_minutes: 6
tags: ["incident-response","cryptography","ruby","supply-chain-security","deployment"]
---

# That Old Certificate Expired and Started an Outage. This is What Happened Next

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2022-01-12, 6 min read, Incident. Original: [https://shopify.engineering/that-old-certificate-expired-and-started-an-outage-this-is-what-happened-next](https://shopify.engineering/that-old-certificate-expired-and-started-an-outage-this-is-what-happened-next)

## Summary

When Let's Encrypt's old root certificate expired on September 30, 2021, Shopify's internal service-to-service HTTPS calls began failing because the Ruby httpclient gem, pulled in transitively by rack-oauth2, openid\_connect and google-api-client, ships its own six-year-old cacert.pem that trusted neither the expired root nor the new one. Failures surfaced about 15 minutes late because TLS validation only happens at connection setup and HTTP keep-alive connections persisted until Kubernetes pods were recycled by a deploy. Locking monolith deployments early confined the damage to canaries, avoiding a global outage, though recommendations, marketing campaigns and order-confirmation risk checks were degraded. The fix was a fork overriding cacert.pem with automated root-bundle updates, with a longer-term move toward system trust stores under consideration.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)
- [Cryptography](https://swe.quest/tags/cryptography.md) (Security)
- [Ruby](https://swe.quest/tags/ruby.md) (Languages)
- [Supply chain security](https://swe.quest/tags/supply-chain-security.md) (Security)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)

## Prerequisites

- TLS certificate chains ([easy posts on Cryptography](https://swe.quest/tags/cryptography.md?difficulty=easy))
- Ruby gem dependencies ([easy posts on Ruby](https://swe.quest/tags/ruby.md?difficulty=easy))
- HTTP keep-alive

## Keywords

Let's Encrypt, httpclient, cacert.pem, rack-oauth2, openid\_connect, google-api-client, Kubernetes, Shopify

## Related posts

- [4 real? Tracking exploitation and patching of eMudhra’s weak keys](https://swe.quest/articles/4-real-tracking-exploitation-and-patching-of-emudhra-s-weak-keys-28b2359b601d1af4.md): Cloudflare · 2026-10-30 · Medium · 7 min read · Cryptography, Incidents & postmortems, Security, Observability
  eMudhra's eight intermediate CA keys were trivially weak (private values like 4, 56 and 66), so anyone could recover the signing keys from the public certificates and forge certificates for any domain that unpatched clients not enforcing Certificate Transparency would accept.
- [Our response to the TanStack npm supply chain attack](https://swe.quest/articles/our-response-to-the-tanstack-npm-supply-chain-attack-a4ee1bd194da9989.md): OpenAI · 2026-05-13 · Easy · 6 min read · Supply chain security, Incidents & postmortems, JavaScript, CI/CD
  Two OpenAI employee devices were compromised via the malicious TanStack npm package in the Mini Shai-Hulud supply chain attack, leading to credential-focused exfiltration from a limited set of internal repositories that held code-signing certificates for iOS, macOS and Windows apps.
- [Our Response To The eMudhra Key Disclosure Incident](https://swe.quest/articles/our-response-to-the-emudhra-key-disclosure-incident-6a668fcaaa15ef20.md): The Go Blog · 2026-10-26 · Easy · 6 min read · Cryptography, Go, Incidents & postmortems, Security
  Weak private keys on eight eMudhra-issued intermediate certificates made them recoverable in microseconds, letting attackers mint trusted TLS certificates for any domain.
- [Using short-lived certificates to protect TLS secrets](https://swe.quest/articles/using-short-lived-certificates-to-protect-tls-secrets-b95eb80ecde3a8e1.md): Meta Engineering · 2023-08-07 · Medium · 7 min read · Cryptography, Security, CDN & edge, Deployment
  Meta now limits TLS private key exposure on its edge to 10 days by rotating short-lived certificates daily, after rejecting CRL/OCSP revocation (latency, failure modes), remote signing from datacenters (vulnerable to backbone and datacenter outages) and delegated credentials (insufficient browser support).
- [How We Found and Fixed a Filesystem Corruption Bug](https://swe.quest/articles/how-we-found-and-fixed-a-filesystem-corruption-bug-ec675d8c1746a0c9.md): Heroku Engineering · 2017-02-15 · Medium · 6 min read · Incidents & postmortems, Linux, Containers, Storage systems, Deployment
  A failed Cedar-14 stack image rollback caused Heroku's container tools to truncate and overwrite a disk image while it was still mounted read-only as dynos' root filesystem.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
