The Cert Expires Tonight. Just Bump It to a 10-Year Cert?
Your nginx TLS cert expires tonight and an expired cert took the site down last quarter. A teammate wants a 10-year self-signed cert. Defend the real fix.
Answer key reviewed by Branko Petric
Your decision
Your nginx TLS cert expires in a few hours and last quarter an expired cert took the site down. A teammate says just buy a 10-year self-signed cert and install it so we never deal with this again. What do you do, and why?
The situation
It is late afternoon and monitoring flags that the production nginx TLS certificate expires tonight. Everyone on the team remembers the last time this happened: a cert quietly hit its expiry date, browsers started throwing security warnings, and the site was effectively down until someone scrambled to renew it. Nobody wants a repeat.
Context
The site runs behind nginx serving HTTPS to both real users in browsers and other services calling its API. The current certificate was renewed by hand each cycle, tracked by a calendar reminder that got missed last quarter. A teammate in chat proposes a shortcut: generate a 10-year self-signed certificate, install it, and stop dealing with renewals for a decade.
Worked interview answers
- How to Prepare for an SRE Interview: What Each Round Tests and How to Practice It
How to prepare for an SRE interview, round by round: coding, Linux and networking, SLO-based design, incident deep-dives and behavioral, plus a 4-week plan.
Related challenges
- 502 Bad Gateway Right After a Deploy
The site returns 502 from nginx after a deploy. A teammate wants to tweak the nginx config. Defend where you actually look first.
- Secrets Rotation Took Down Prod at 3 AM. Pin Credentials?
Automated rotation revoked a database password while pools and caches still held it, locking prod out at 3am. A teammate wants to pin credentials for a year. Defend fixing rotation instead.
- You Pushed AWS Keys to a Public Repo
Live cloud keys just landed in a public GitHub repo. A teammate says delete the file and force-push. Defend what you do first.
- Your S3 Website Returns 403. Make the Bucket Public?
Objects in S3 return 403 and a teammate wants to turn off Block Public Access to fix it fast. Defend the right way to grant access.