← Back to knowledge base
Windows ServerFor IT admins

Find certificates that are about to expire

An expired certificate can take down a website, VPN, RDS gateway or line-of-business app overnight. Find expiring certificates on your servers with PowerShell before they bite.

Last verified October 3, 2026

Certificates expire on a fixed date, and nothing warns users until something breaks. Public TLS certificate lifetimes are also getting shorter, so renewals come around more often than they used to.

Symptoms

  • Browsers show “Your connection isn’t private” for an internal site or portal.
  • Remote Desktop Gateway, VPN or Exchange connections suddenly fail.
  • Schannel errors in the System log, such as event 36887.

Cause

A certificate on a server, load balancer or appliance reached its expiry date without being renewed.

Fix

1. List certificates expiring soon on a server

In PowerShell as administrator:

Get-ChildItem -Path Cert:\LocalMachine\My -ExpiringInDays 60 |
  Select-Object Subject, NotAfter, Thumbprint

Use -ExpiringInDays 0 to list certificates that have already expired.

2. Check several servers at once

Invoke-Command -ComputerName SRV01, SRV02 -ScriptBlock {
  Get-ChildItem -Path Cert:\LocalMachine\My -ExpiringInDays 60 |
    Select-Object Subject, NotAfter
}

3. See what a certificate is used for

  • IIS: in IIS Manager, check each site’s Bindings for the certificate thumbprint.
  • RDS: Server Manager › Remote Desktop Services › Deployment Properties › Certificates.
  • Other apps: match the thumbprint in the app’s own settings.

4. Renew and rebind

Renew with your certificate authority, import the new certificate into Local Computer › Personal, then update every binding that used the old one. Remove the old certificate only after confirming nothing still uses it.

If that didn’t work

  • Certificates on firewalls, VPN appliances, printers and Wi-Fi controllers don’t appear in Windows stores. Check them in each device’s admin page.
  • If clients still see the old certificate, restart the service, or check that the full chain (intermediate certificates) is installed.

When to call us

  • You don’t have a list of which certificates you own and where they’re used. We track renewals for our managed clients.
  • An expired certificate has already taken a service down.

Sources

Didn’t fix it? We can take a look.

Open a ticket