The proxy's root certificate expired

HTTPS through the proxy suddenly stopped working on every site at once. How to check the certificate's dates, tell it apart from a wrong clock, and replace the certificate on the computer and the devices.

What it looks like

Yesterday HTTPS capture worked, and today every site fails at once: certificate warnings in the browser, dropped connections in apps, client handshake failures in the proxy. You changed nothing.

The proxy signs a certificate for each site with its root certificate. Once the root's validity period ends, every chain fails verification, however installed and trusted the root is.

Check the clock first

A wrong date on the device gives the same error: a phone after a full discharge, a VM after a pause, an emulator restored from an old snapshot. Turn on automatic date and time and retry. If only one device fails, it is almost certainly the clock.

How to find the certificate's dates

Export the root certificate from the proxy:

openssl x509 -in proxy-ca.pem -noout -subject -dates

notAfter is the end date. Without a command line:

  • macOS: Keychain Access, the proxy's certificate, the Expires column.
  • Windows: certmgr.msc → Trusted Root Certification Authorities → Certificates, the Expiration Date column.
  • iPhone: Settings → General → VPN & Device Management → the proxy's profile → More Details.

How to replace it

  1. Issue a new certificate in the proxy. In Solpuga: Settings → Proxy. Elsewhere, look for "reset" or "regenerate".
  2. Remove the old certificate. Otherwise the store holds two certificates with the same name.
  3. Install the new one on the computer and trust it. If you imported the old one into Firefox, replace it there too.
  4. Install the new one on every device. On an iPhone, also turn full trust on again: Settings → General → About → Certificate Trust Settings; see iOS: the profile is installed but the certificate is not trusted.
  5. Update everything set up by hand: the Java store, the file in NODE_EXTRA_CA_CERTS, Android builds with the certificate in res/raw, containers and CI runners.

The same symptom after a reinstall

Many proxies generate a new root certificate on every installation. After a reinstall, a move to another computer or a settings reset, devices that trusted the old root reject the proxy. Same cure: steps 2–5.

See it on your own traffic

In Solpuga the root certificate's issue and expiry dates and its trust status are in Settings → Proxy, where it is also exported as PEM and deleted. The wizard in the SSL Certificate menu installs it on the computer; separate wizards in the same menu install it on the iOS Simulator, an iPhone, an Android emulator and an Android device. Every Solpuga installation creates its own certificate, which is not carried between machines. Details: Certificate Installation.

View in Solpuga

Related