Pcornel
Browse topics
Options
Recent
Favorites
Web Infrastructure · Technical reference

TLS Certificates

Direct 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.

When to use this

Use this when installing or renewing TLS certificates on IIS.

First 30 seconds

1. Get-ChildItem IIS:\SslBindings.

2. Certificate valid, SAN covers name, private key present.

3. SNI bindings per host.

4. Renewal process (re-bind).

5. Test with browser/Test-NetConnection -Port 443.

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Microsoft Windows
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformMicrosoft Windows
Scope / prerequisiteUse this when installing or renewing TLS certificates on IIS.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Common mistakes Narrow the fault
  • Forgetting to update bindings after renewal (use Centralized Certificate Store or automation).
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • The certificate must be in the Local Machine Personal store.
  • Send the full chain including intermediates.
  • Renew before expiry and rebind.
Key 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
ReferenceWhy it matters1 section · depth on demand

How it works

IIS does not hold certificates itself: HTTP.sys binds a certificate (by thumbprint from Cert:\LocalMachine\My) to an IP:port or, with SNI, to a hostname:port. The app pool identity needs no access to the private key; HTTP.sys uses it. Protocols and ciphers are set system-wide in SChannel (registry or tools such as IIS Crypto).

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Where the binding really lives

IIS site bindings are stored in IIS configuration, but the certificate binding is held by HTTP.sys. With SNI the key is hostname:port; without SNI it is IP:port.

C:\> netsh http show sslcert
SSL Certificate bindings:
-------------------------
    Hostname:port                : www.example.com:443
    Certificate Hash             : 3a5f...c2
    Application ID               : {4dc3e181-e14b-4a21-b022-59fc669b0914}
    Certificate Store Name       : My
    Negotiate Client Certificate : Disabled

Microsoft's SNI article shows these hostname:port entries in netsh http show sslcert. If the thumbprint there differs from the renewed certificate, clients still get the old one.

Renewal without downtime

$new = Get-ChildItem Cert:\LocalMachine\My | Where { $_.Subject -like '*www.example.com*' } | Sort NotAfter | Select -Last 1
$b = Get-WebBinding -Name 'Site1' -Protocol https -HostHeader 'www.example.com'
$b.AddSslCertificate($new.Thumbprint, 'My')

Or use the Centralized Certificate Store, where IIS picks the certificate by file name per host name and renewal means replacing a .pfx file.

Checklist when HTTPS fails

SymptomCheck
Browser shows the wrong certificateSNI flag missing on the binding (SslFlags 1), or the client does not send SNI
ERR_CONNECTION_RESET immediatelyNo HTTP.sys binding for that hostname:port/IP:port
Certificate present but "no private key"Imported without key, or key permissions broken — re-import the PFX
Chain errorsIntermediate certificate missing from Cert:\LocalMachine\CA
Old TLS versions offeredSchannel registry settings / Disable-TlsCipherSuite; test with an external scanner

Verify from a client

Test-NetConnection www.example.com -Port 443
openssl s_client -connect www.example.com:443 -servername www.example.com

-servername sends SNI; compare the result with and without it to see whether a default (non-SNI) binding answers.

*The IIS TLS certificate binding fields above are illustrative examples, not captured from a lab or production system.*

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Commands

Get-ChildItem Cert:\LocalMachine\My | Select Subject,Thumbprint,NotAfter
netsh http show sslcert
New-WebBinding -Name Site -Protocol https -Port 443 -HostHeader www.example.com -SslFlags 1

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docMicrosoft Windows current

Authoritative/upstream documentation reviewed for bounded claims in IIS → TLS Certificates. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://learn.microsoft.com/en-us/iis/ · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
iis certificateiis https certificateiis ssl binding
Confirmation

Confirm action

Continue?