Pcornel
Web Infrastructure · IIS

TLS Certificates

Cheat sheet · https://pcornel.dk/topic.php?topic=3360

Back to the Topic

Answer

IIS TLS certificates are imported into the computer's Personal store and selected on an HTTPS binding. Include the full chain, use SNI for several sites, and renew before expiry, for example with win-acme or ACME clients.

Remember

  • The certificate must be in the Local Machine Personal store.
  • Send the full chain including intermediates.
  • Renew before expiry and rebind.

First checks

  • Get-Website — sites, state, bindings
  • Get-IISAppPool — application pools and state
  • Get-WebBinding — bindings
  • Get-ChildItem IIS:\SslBindings — certificate bindings
  • Get-Content C:\inetpub\logs\LogFiles\W3SVC<id>\*.log -Tail 20 — request log

Verify in this order

HTTPS binding → certificate → TLS handshake

Where it usually breaks

First mismatch in target identity/version → persistent configuration/source of truth → provider/service/control plane → runtime/effective state → user/workload-visible result → event/log evidence; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3360

Confirmation

Confirm action

Continue?