An IIS Site Serves the Wrong Certificate After Renewal
Before you begin
- Applies to:IIS on Windows Server 2025 when clients still see the wrong certificate after renewal.
- Where to start:Start from an approved client. Then inspect the binding at the server, proxy, or load balancer that terminates TLS. For graphical checks, use Desktop Experience or an approved Windows management workstation. Use PowerShell 7 or later unless a module requires Windows PowerShell.
- What you need:Record the expected hostname and certificate thumbprint. Confirm which system terminates the client TLS connection.
Guide tools
Troubleshooting Steps
Capture the certificate seen by the client
Start hereOpen the site using its normal hostname. Inspect the presented certificate and record issuer, subject alternative names, expiration, and thumbprint. If multiple endpoints serve the hostname, compare affected and working paths.
Locate the TLS termination point
Where to click
- Open IIS Manager β Sites β the affected site β Bindings.
- Select its https entry and choose Edit to inspect it.
What to look for Β· If a reverse proxy terminates TLS, check its listener and certificate first. If IIS terminates TLS, compare the hostname, port, address, and Server Name Indication (SNI) on all relevant sites.
Confirm the renewed certificate is usable
Where to click
- Open Certificates β Local Computer and check the expected certificate store.
- Compare its thumbprint with the approved renewal record.
What to look for Β· Check that the expected certificate is in the appropriate local computer store, has its private key, is valid for the hostname, and chains to trusted issuers. If Centralized Certificate Store is used, follow its supported certificate mapping and naming workflow.
Update the confirmed binding
Use the ownerβs supported process to associate the new certificate with the correct listener. Preserve the previous binding for rollback. Avoid changing another siteβs SNI or certificate merely because it shares the port.
Verify the certificate from the client
VerifyOpen a fresh connection using the original hostname. Confirm the intended certificate and trusted chain, then test neighboring hostnames that share the address and port.
Decide What to Do Next
| Finding | Next action |
|---|---|
| Proxy presents the old certificate | Update the proxy listener if it terminates client TLS. |
| Correct certificate exists but binding is old | Update the confirmed HTTPS binding. |
| Renewal exists without a usable private key | Use the approved renewal or import workflow. |
References
Your feedback keeps these production procedures accurate and battle-tested.