The computer that could not open secure websites

A classroom computer could not open any HTTPS (Hypertext Transfer Protocol Secure) website. The browser warned that the connection was not private. Other computers on the same network worked.

The technician checked the network, proxy and antivirus, and reinstalled the browser. Nothing changed. On startup a message asked for a key press to continue, and whoever arrived first pressed it without reading.

The problem occurred only on mornings after the caretaker switched off the classroom power strip. If it stayed on, everything worked.

What did the power strip have to do with secure websites?

How to solve the cases
A monitor displaying an unsafe connection warning next to an open PC and a power strip

Hints

Reveal them one at a time, only when you need them.

Solution

The motherboard battery was flat. Switching off the power strip made the clock reset to a date years earlier. The HTTPS certificates then appeared not yet valid, so the browser blocked the connections.

What happened?

The motherboard clock keeps time while the computer is off. Many systems can use standby power while plugged in. When disconnected, they rely on a coin cell, usually a CR2032, which can also preserve BIOS or UEFI settings. Dell lists the wrong time and lost settings after shutdown as common symptoms.

RFC 5280 defines certificate validity with notBefore and notAfter. The browser compares the system time with that interval.

  1. Switching off the strip cut power. With a flat battery, the clock reset to a manufacturer-dependent default years earlier.
  2. At startup the motherboard detected an invalid time and displayed a setup prompt. Pressing the key to continue started Windows with the old date.
  3. The browser received a recently issued certificate whose notBefore date had not arrived according to the computer.
  4. The classroom network required browsing through its proxy and blocked synchronisation with external time servers.
  5. When the strip stayed on, standby power kept the time correct.

Every HTTPS site tested failed because the clock was earlier than its certificate’s start date. A clock off by only a few days would have affected certificates whose validity began after the displayed date.

How could it be fixed and prevented?

To fix it, unplug the computer, replace the battery, set the correct date and time in BIOS or UEFI and review any settings that may have reset. In Windows you can sync the clock in Settings under Time and language.

To prevent it from recurring:

  • Check the clock first. If one computer reports certificate errors on every site, inspect its date and time.
  • Read startup warnings. A “Time-of-day clock stopped” warning, a slow clock or lost BIOS settings can point to a failing battery.
  • Use a trusted time server. Allow the classroom network to reach an approved internal or external NTP server.
  • Include the battery in maintenance. Preventive replacement on ageing equipment can avoid hard-to-diagnose faults.

Further reading

Dell describes the battery’s role and signs of failure in Replacing a CMOS battery on a Dell desktop — Dell.

The certificate fields notBefore and notAfter are defined in RFC 5280, section 4.1.2.5: Validity.

Have a story worth investigating?

Suggest a case

A project by Eniun

How do you solve the cases?

Each case presents a mystery that seems to defy explanation.

A moderator who knows the solution reads the mystery to the group. The group works out what happened by asking questions, discussing hypotheses and using what they know.

You can project the case on a screen so everyone can read it and refer back to it during the discussion.

The moderator can guide the discussion without giving away the answer. If the group gets stuck, each case offers three graded hints under “Hints”, which can be revealed one at a time.

Once the moderator confirms that the group has found the answer, select “Show answer” to open the solution.

You can also solve the cases on your own: read the story, try to come up with an explanation and use the hints only when you need them.