Windows Server / Services, IIS & Secure Operations
Check a server certificate's identity and validity before replacing it
A TLS outage can involve an expired certificate, missing private key or binding to the wrong certificate. Inspect the intended certificate store.
Environment and inputs: Windows Server 2022 / 2025 baseline · Windows PowerShell with the specified role or RSAT modules; native utilities are identified in the text. Use delegated administration and elevation only where required.
Start with this check
Check the computer, command shell and account permissions. Replace example names, file paths, domains and interfaces with approved values. These commands help investigate the problem. Before making changes, check the rules and the effect on running applications.
Get-ChildItem Cert:\LocalMachine\My | Select-Object Subject, Thumbprint, NotAfter, HasPrivateKey
What the results mean
This PowerShell query lists personal-store certificate metadata on the local machine. It does not identify which certificate a remote endpoint actually presents.
Fix the cause and check again
Compare the endpoint's certificate and binding with the approved hostname, chain and renewal record. Install and bind the correct verified replacement through the certificate process.
Before changing production
Do not export private keys into tickets or delete old certificates before checking other service bindings.