Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

ปุ่มแปลไทยจะเปิดบทความผ่าน Google Translate เพื่อแปลอัตโนมัติ โดยคงโค้ดและคำสั่งไว้ตามต้นฉบับ

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.

Compiled for Sorlavit Kim · Published · Updated · 1 min read

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

Confirm the host, shell and access role. Replace sample names, paths, domains and interfaces with approved targets. These are diagnostic commands; assess policy and workload impact before making changes.

Get-ChildItem Cert:\LocalMachine\My | Select-Object Subject, Thumbprint, NotAfter, HasPrivateKey

Read the result

This PowerShell query lists personal-store certificate metadata on the local machine. It does not identify which certificate a remote endpoint actually presents.

Resolve and verify

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.

Share this article

Back to all articles