Troubleshooting

Fixing Clock Skew SSL Errors

TLS certificate validation depends on comparing the current date against the certificate's validity window — if a device's system clock is significantly wrong (set to a date before the certificate's start date, or after a in practice valid certificate's expiry, from the device's incorrect perspective), it will reject a perfectly valid certificate as expired or not-yet-valid.

1 A certificate has a fixed Not Before and Not After date Set at issuance, based on the CA's own clock 2 Your device compares its own current time against that window Not the server's time — the checking client's own system clock 3 A skewed client clock can fall outside a genuinely valid window Making a perfectly valid certificate appear expired or not-yet-valid 4 Correcting the client's clock resolves it immediately No certificate or server change is needed if the clock was theactual cause
Why the Clock Matters for Certificate Validity

Checking and fixing

On the affected device, check the system date and time settings, and confirm automatic time synchronization (NTP) is enabled rather than a manually-set, potentially drifted clock. This is a client-side issue rather than anything fixable on the server serving the certificate — if you're getting reports from a specific user or device, clock skew on their end is worth checking before assuming a server-side certificate problem.

Why an incorrect system clock causes such a broad, confusing range of certificate errors

Because certificate validation fundamentally depends on comparing the current date against the certificate's stated validity window, an incorrect system clock can produce seemingly contradictory errors, a certificate reported as both expired and not-yet-valid depending on which direction the clock is wrong, all stemming from the identical underlying clock problem.

How to enable automatic time synchronization to prevent this recurring

Enabling your operating system's built-in automatic time synchronization (NTP on most systems) rather than relying on a manually set clock prevents gradual clock drift from ever accumulating into a certificate-validation-affecting discrepancy in the first place.

What the practical impact of even a small clock discrepancy can be

Even a clock off by just a few minutes can occasionally trigger certificate validation issues right around a certificate's exact issuance or expiry moment — while a few minutes rarely causes problems for most certificates' validity windows, a clock off by hours or days much more reliably triggers this class of error.

How virtual machines exactly are prone to clock drift issues

Virtual machines, particularly ones that have been paused, suspended, or migrated between physical hosts, are especially prone to clock drift compared to a continuously running physical machine — explicitly enabling time synchronization is particularly important for VM-based infrastructure in particular because of this heightened drift risk.

What the exact commands look like for checking and correcting time on a Linux server

Running timedatectl status shows your current time synchronization status, while timedatectl set-ntp true enables automatic synchronization going forward — two commands that together diagnose and fix the large majority of Linux server clock-related issues.

How to set up monitoring for clock drift on critical infrastructure

Some infrastructure monitoring tools can precisely alert if a server's reported time drifts beyond an acceptable threshold from a trusted reference time source, catching a synchronization failure proactively before it causes a certificate-related or other time-sensitive issue.

Why embedded and IoT devices are particularly prone to this specific issue

Embedded devices and IoT hardware often lack a battery-backed real-time clock or reliable internet-based time synchronization, meaning they're especially prone to running with a significantly incorrect clock, particularly after a power loss — worth notably checking if troubleshooting a certificate issue on this category of device.

Try our SSL Checker — Check the certificate a live server is in fact presenting.

Comments

Loading comments…