MC-BARS.COMDomains · SSL · HTTPS · Guides

MC-BARS.COM / Articles / IIS and Windows Server

SSL Certificate for Windows Server and IIS: Setup, HTTPS, TLS 1.3, and Renewal

Home / Articles / SSL on IIS
Practical Guide · WINDOWS SERVER / IIS / TLS

SSL Certificate for Windows Server and IIS: Setup, HTTPS, TLS 1.3, and Renewal

Detailed guide to installing a certificate on IIS: importing a PFX, creating an HTTPS binding, SNI, free Let’s Encrypt with win-acme, TLS 1.3, and troubleshooting errors.

Updated: November 5, 2026 · Windows Server 2016–2025 · For website owners and IIS administrators

Before configuring: the commands use a sample domain example.ru. A production server requires a backup, dependency assessment, maintenance window, and verification against the Windows/IIS version. Do not enter secrets into public forms or online converters.

1. What SSL for IIS Is and Where HTTPS Works

SSL Certificate and Secure Website on Windows Server with IIS
SSL Certificate and Secure Website on Windows Server with IIS. Thematic illustration; the interface shown is illustrative and is not a screenshot of an actual control panel.

Internet Information Services (IIS) is a Microsoft web server used for ASP.NET applications, corporate websites, web interfaces, and services running in the Windows Server environment. When people say “install SSL on IIS,” they mean configuring the modern TLS protocol. Older SSL protocols are considered obsolete and should not be used to protect a public website. The term SSL certificate remains in interface labels and everyday usage.

A secure connection does not result from uploading a single file. You need a certificate for the correct domain name, its associated private key, a correctly configured IIS HTTPS binding on port 443, a working trust chain, and support for compatible TLS versions. Redirects, security headers, resource loading, and automatic certificate renewal should also be checked.

In Windows, IIS certificates are usually stored in the system certificate store for the local computer. This differs from Nginx, where administrators often specify paths to PEM files and private keys directly. When working with IIS, it is important to understand the difference between a certificate in the store, a binding to a specific website, and the actual TLS configuration in Windows Schannel.

This guide covers Windows Server 2022 and 2025 with IIS 10. Differences for Server 2016 and 2019 are noted separately. The examples use the domain example.ru, which should be replaced with the project’s actual address. Run all commands with due regard for administrative permissions, backups, and a test environment.

2. Infrastructure Checks Before Installation

Before enabling SSL, determine which system handles external HTTPS traffic. In some projects, the connection terminates directly in IIS; in others, a load balancer, Azure Application Gateway, CDN, corporate proxy, or security gateway sits in front of the server. If an external entry point presents the certificate, replacing the certificate only in IIS may have no effect on what the browser sees.

Check DNS records A and AAAA, Windows Firewall settings, network firewall, and NAT rules. The website needs TCP port 443. Domain validation using HTTP-01 usually requires TCP port 80 to be reachable from the outside. If the domain points to multiple nodes, validation and certificate deployment must account for all entry points.

Resolve-DnsName example.ru -Type A
Resolve-DnsName example.ru -Type AAAA
Test-NetConnection example.ru -Port 443
Test-NetConnection example.ru -Port 80
Get-Service W3SVC

PowerShell commands show addresses, network connectivity, and the status of the World Wide Web Publishing Service. A successful port check from within the server does not prove that external visitors can reach it. Test from an independent network as well, especially with complex routing, external proxies, or multiple public addresses.

Before making changes, record all website bindings, current certificate thumbprints, and Windows and IIS versions. If HTTPS is already working, note the current certificate’s expiration date, verify access to the console, and plan how to restore the previous binding. Deployment without a rollback plan is inadvisable, even when replacing a single certificate.

Import-Module WebAdministration
Get-Website | Select-Object Name, State, PhysicalPath
Get-WebBinding | Select-Object protocol, bindingInformation, sslFlags
Get-ChildItem Cert:\LocalMachine\My |
  Select-Object Subject, Thumbprint, NotAfter, HasPrivateKey

When working with a production server, keep in mind that one machine may host several independent websites. Changing a shared IP:443 binding without a host name may affect other projects. Therefore, you need to know whether SNI is in use and where the mapping between names and certificates is configured.

3. Certificate Formats Supported by Windows

When purchasing or issuing an SSL certificate, you may receive files .cer, .crt, .pem, .p7b and .pfx. These formats are not interchangeable by simply renaming the file extension. For IIS configuration, you generally need the certificate together with its private key. A PKCS#12/PFX package can transfer the certificate, its associated private key, and, if necessary, additional certificates in the chain.

FormatWhat it usually containsTypical use
CER / CRTPublic certificate, sometimes in DER or PEM formatViewing a certificate or completing an issued CSR
PEMText representation of a certificate or keyExchange with Linux servers and ACME clients
P7B / P7CCertificates and chain without the private keyTransferring the trust chain
PFX / P12Certificate and private key, protected by a passwordTransferring to IIS and importing into the Windows store

The “certificate is present, but IIS does not offer it” error is often caused by a missing private key. For example, a plain file .cer, imported from another computer, does not transfer the key that was created when the CSR was requested. When selecting a certificate for HTTPS, make sure the private key is present and available to the service that performs cryptographic operations.

Do not send a PFX and its password in the same email, store it in a public website directory, or upload it to random websites for “checking.” The private key is a secret; if it is compromised, changing the file password is not enough. The certificate must be reissued with a new key pair and, if necessary, the old certificate revoked.

4. Installing the IIS Role and Preparing the Website

If IIS is not yet installed, you can add it to Windows Server using Server Manager or PowerShell. In Server Manager, use the Add Roles and Features wizard, then select the Web Server (IIS) role and the required management tools. ASP.NET applications also require the corresponding features; the set depends on the specific application and .NET version.

Get-WindowsFeature Web-Server
Install-WindowsFeature Web-Server -IncludeManagementTools
Get-Service W3SVC

Run the installation command in an elevated PowerShell session; it changes the server configuration. There is no need to reinstall the role on a server that is already running. Before adding components, check whether the server is managed by a hosting control panel or infrastructure system that may overwrite IIS settings.

The next step is to check the website in IIS Manager, its physical path, application pool, and HTTP handling. It is best to first get the correct response over http://example.ru, and then enable HTTPS. If the application fails with a 500 error or responds to a different Host, a certificate will not fix the startup problem.

For easier verification, prepare a test page and make a request from a browser on another computer. Comparing responses over IPv4 and IPv6 can reveal cases where the primary DNS record has already been updated but an additional one still points to the old server.

5. Manual Certificate Issuance: CSR Request and Domain Validation

If you are using a commercial certificate with manual validation, the process begins by creating a certificate signing request (CSR). In IIS Manager, at the server level, open the Server Certificates (“Server Certificates”) section. It provides actions for creating a request and completing the installation after receiving the certificate authority’s response. Menu item names may differ in localized versions.

When creating a CSR, make sure you enter the domain names that must be included in the certificate. Modern browsers primarily rely on the Subject Alternative Name (SAN) extension in public certificates. The Common Name field alone does not replace listing the required DNS names in SAN. If the website is available as example.ru and www.example.ru, check both versions.

The certificate authority verifies control of the domain. Depending on the certificate type and chosen procedure, this may involve a DNS record, a validation file, or another permitted method. OV/EV certificates have additional organization requirements. A paid certificate does not mean “stronger HTTPS” when the cryptographic parameters are the same.

After the certificate has been issued and the request completed, bind it to the website. Make sure you retain the machine and profile where the CSR and its associated private key were created. If the original key is unavailable, you may not be able to use the certificate without reissuing it or correctly importing a PFX.

6. Importing a PFX into the Windows Certificate Store

When the certificate is already prepared in PFX/P12 format, it is usually imported into the local computer’s personal certificate store — Cert:\LocalMachine\MyThis is done through the Certificates snap-in for the Computer account or with PowerShell. This is a different store from that of the current user: a certificate from CurrentUser\My may not appear in the IIS binding dialog you need.

On a server hosting a live website, check the file’s origin, confirm that it includes the private key, and use a secure method to transfer it. Do not write the password in plain text in a script, command history, or README that may end up in the website archive.

# Выполняется в PowerShell от имени администратора.
# Файл PFX должен быть получен из доверенного источника.
$credential = Get-Credential -UserName 'PFX password' -Message 'Пароль файла PFX'
Import-PfxCertificate -FilePath 'C:\secure\site.pfx' `
  -CertStoreLocation Cert:\LocalMachine\My `
  -Password $credential.Password

After a successful import, check the thumbprint, expiration date, name, chain, and the HasPrivateKey. By default, the private key should remain non-exportable unless the approved infrastructure design requires a later export. Delete temporary PFX copies after safely storing a backup.

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

Availability HasPrivateKey = True — a necessary, but not the only, check. Verify the actual chain of trust, that the SAN is correct, and that the certificate is actually selected for the required HTTPS binding. Checking the public page from an external network remains essential.

7. Creating an IIS HTTPS binding on port 443

How IIS routes HTTPS connections between multiple sites using bindings and SNI
How IIS routes HTTPS connections between multiple sites using bindings and SNI. Thematic illustration; the interface shown is illustrative and is not a screenshot of a real control panel.

In IIS Manager, select the required site in the left pane Sites, then open the action Bindings… (“Bindings”). In the window, add an entry with the type https, port 443, the required host name, and the selected certificate. This step cannot be replaced by simply installing the certificate in the Windows certificate store: the binding is what associates an incoming request with the site's TLS configuration.

If multiple HTTPS sites run on one IP address, use Server Name Indication (SNI). When adding the binding, specify the host name and enable the SNI requirement if the hosting configuration requires it. With SNI, the client tells the server the requested name during the TLS handshake, allowing IIS to select the corresponding certificate.

For the test site example.ru the values will be approximately as follows: Type — HTTPS, Port — 443, Host name — example.ru, SSL certificate — the selected certificate for example.ru. For www.example.ru a separate binding with this name and the same certificate may be required, if the certificate actually covers both names.

A missing required binding, conflicting names, or an incorrect IP can cause IIS to present another site's certificate. A redirect cannot fix the problem: certificate verification occurs before the HTTP redirect. The secure connection is established first, and only then can the server send a 301 status code.

8. What SNI is and why different certificates can be used on one IP

SNI is a TLS extension that allows the requested server name to be sent when establishing a connection. It is especially useful when one Windows Server hosts many sites with separate certificates on one public IP. IIS 8 and later support SNI through the corresponding HTTPS binding settings; in IIS 10, this is a standard scenario.

When checking SNI, account for two different addresses: the server IP and the name in the request. Directly connecting to https://192.0.2.10 may show the wrong certificate or a name error, even when https://example.ru works correctly. For a complete test, use the name in SNI, the correct Host, and an external route.

When hosting multiple sites, avoid ambiguous catch-all bindings without a host name on the same IP:443. They may intercept requests or serve as the default binding. Do not remove another site's entry “for cleanup” without checking the site list and the current certificate assignments.

A separate case is a CDN or load balancer that terminates HTTPS itself. The browser then sees the certificate of the external endpoint, not IIS. The origin server may use a different certificate for the internal connection. In this architecture, check both segments separately; the final binding in IIS remains important, but it is not the only one.

9. Free Let’s Encrypt certificate for IIS using win-acme

Automatic SSL certificate renewal for IIS with win-acme and Windows Task Scheduler
Automatic SSL certificate renewal for IIS with win-acme and Windows Task Scheduler. Thematic illustration; the interface shown is illustrative and is not a screenshot of a real control panel.

One commonly used ACME client for Windows Server is win-acme. It can obtain certificates from Let’s Encrypt and other compatible ACME services, select IIS sites, complete domain validation, save certificates in Windows, and update HTTPS bindings when configured to do so. For a typical site, this is often easier than manually issuing and importing a PFX.

The tool can be downloaded from the official project win-acme. Extract the archive to a separate directory accessible to the administrator; the executable file wacs.exe should be run with the required permissions. Before using it, verify the digital signature/source of the distribution, the version and .NET requirements, and that an IIS configuration backup is available.

In the typical interactive mode, after launching wacs.exe select the option to create a new certificate. When using IIS, the client may offer a choice of an existing site and the domain names it includes. The next steps involve confirming control of the domain, issuing the certificate, installing it in the certificate store, and updating the bindings. Exact menu item numbers depend on the version, so they should not be considered fixed.

cd C:\Tools\win-acme
.\wacs.exe

For HTTP-01, the public domain must respond to validation HTTP requests. If port 80 is blocked, the site is behind a complex proxy, or a Wildcard is required, choose another supported validation method—for example, DNS-01. DNS-01 often requires access to the DNS provider's API; store credentials according to the principle of least privilege.

After successful issuance, verify not only the program's message but also that HTTPS actually loads in a browser. A certificate may have been issued but not bound to the required site because of permission restrictions, a conflicting binding, or a nonstandard IIS configuration.

10. Automatic renewal: Windows Task Scheduler and error logs

Public certificates have a limited validity period, so automation is an essential part of reliable HTTPS. win-acme usually creates a task in Windows Task Scheduler after the first successful issuance. This task periodically checks whether renewal is due and contacts the ACME server if necessary.

In Task Scheduler, check the task name, last run, result code, account, permissions, and path to the executable. The presence of a task does not prove that renewal succeeded: it may fail because of DNS issues, a blocked port, an IIS configuration change, or expired access permissions for the DNS API.

win-acme logs and Windows events show actual renewal attempts. It is important to distinguish the date of the next check from the date when a new version of the certificate was actually installed. Unnecessary forced reissuance can lead to rate limits imposed by the certificate authority.

# Открыть каталог программы и проверить план обновлений:
cd C:\Tools\win-acme
.\wacs.exe --list

# Запросить проверку продления по правилам клиента:
.\wacs.exe --renew --verbose

Check the settings against the documentation for the installed version. The command --renew does not necessarily trigger immediate reissuance: the client determines which tasks are due for renewal. A forced renewal option is available, but on a production server it should be used for justified troubleshooting, not on a schedule.

An external certificate monitor that checks actual HTTPS from outside is useful. It can detect issues that are not visible in the local certificate store, such as an incorrect certificate on a proxy, an outdated binding, or a problem with a separate domain name.

11. Manual renewal of a commercial SSL certificate

When using a certificate obtained from a commercial certificate authority, account for its reissuance and validation process. The new certificate may have a different private key and a different fingerprint. Even if the domain name has not changed, IIS will continue to use the old certificate until the active binding is updated.

A safe sequence involves obtaining the new certificate, checking its chain and SAN, importing it with the private key, changing the required HTTPS binding, and testing from an external device. It is best not to delete the old certificate until verification is complete, so you can quickly roll back the change if necessary.

If the server hosts many domains, make a list in advance of the bindings that use the old certificate. Several different HTTPS sites may have shared one SAN certificate or Wildcard. Updating only one binding will leave the other sites using the old certificate.

After successful testing, remove unnecessary PFX copies and secrets, and document the new fingerprint and certificate expiration date. Do not assume that clicking “Import” automatically replaces the old binding: importing and assigning are separate operations.

12. TLS 1.2 and TLS 1.3: what Windows Server supports

Secure TLS connection and website security checks on Windows Server
Secure TLS connection and website security checks on Windows Server. Thematic illustration; the interface shown is illustrative and is not a screenshot of a real control panel.

Windows uses the Schannel cryptographic component, which handles TLS for many system applications, including typical IIS/HTTP.sys configurations. Therefore, the available protocol set depends not only on the IIS version but also on the operating system version, installed updates, and Windows security policy.

According to Microsoft documentation, full support for TLS 1.3 was introduced in Windows Server 2022 and is available in Windows Server 2025. You cannot add secure TLS 1.3 support to Windows Server 2016 or 2019 simply by adding registry keys. Attempts to “enable an unsupported protocol” using such advice do not modernize the server and may disrupt services.

Windows Server versionTLS 1.2TLS 1.3 in Schannel
Windows Server 2016SupportedNot supported
Windows Server 2019SupportedNot supported
Windows Server 2022SupportedSupported
Windows Server 2025SupportedSupported

For modern public websites, use secure cipher suites and keep the operating system up to date. When changing Schannel policies, account for applications and external integrations that use the same cryptographic subsystem. Incorrectly disabling protocols can affect not only IIS but also other services' internal connections.

Verify TLS 1.3 support through an actual network connection using a compatible client. The mere presence of a setting in the registry does not prove that the server negotiated TLS 1.3. If a CDN is used, check the external endpoint and IIS separately: they may use different protocols.

13. Why changing the Schannel registry requires caution

Instructions with ready-made REG files that disable several protocols and ciphers can be found online. Copying such settings without understanding the system is risky: a single Windows Server may host a website, connect to a database, receive updates, perform backups, and communicate with corporate services over TLS.

Before changing policy, inventory the OS versions, installed updates, application dependencies, cipher suites, and required client protocols. For a production server, use supported Windows management mechanisms and change control rather than undated advice with no source.

Schannel changes may require services or the server to be restarted. This is a reason to schedule a maintenance window in advance, prepare a configuration backup, plan a rollback, and test internal integrations. HTTPS working on the home page does not prove that all corporate applications still have access to APIs.

It is especially important not to apply dubious “enable TLS 1.3 through the registry” recipes on Windows Server 2019. Microsoft explicitly states that enabling TLS 1.3 on earlier Windows versions is not a secure configuration. Actual support requires a suitable OS version or an architecture with a separate compatible TLS terminator.

14. Redirecting HTTP to HTTPS through IIS URL Rewrite

After HTTPS is working successfully, you can configure a permanent redirect from HTTP to HTTPS. IIS often uses the URL Rewrite module for this. It must be installed separately: IIS being present does not by itself guarantee support for the section system.webServer/rewrite in web.config. Before changing rules, check the existing redirects configured in the application, hosting control panel, proxy, and CDN.

Below is an example rule for the domain example.ru, which preserves the path and original query string. It uses a fixed destination name and therefore does not build the redirect from an arbitrary Host header value. Multiple domains require a deliberate canonical URL scheme.

<configuration>
  <system.webServer>
    <rewrite>
      <rules>
        <rule name="HTTP to HTTPS" stopProcessing="true">
          <match url="(.*)" />
          <conditions>
            <add input="{HTTPS}" pattern="off" ignoreCase="true" />
          </conditions>
          <action type="Redirect"
                  url="https://example.ru/{R:1}"
                  appendQueryString="true"
                  redirectType="Permanent" />
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>

Important: This is a complete instructional snippet, not a file to replace an existing web.config. In a real project, combine the rules with the application's current settings; otherwise, you may remove required handlers, ASP.NET routes, and existing redirects. On sites behind a reverse proxy, the value of {HTTPS} may not reflect the scheme of the external request. In that case, the proxy and application must be configured to work together correctly, or a redirect loop may occur.

To check this, send requests to HTTP and HTTPS and compare the values of Location. After configuration, a regular page, a request with a query string, and a nested URL should all work correctly. A 301 redirect is suitable for permanently moving a site, but make sure HTTPS is stable before enabling it broadly.

15. HSTS: when to enable it and why not to rush

HTTP Strict Transport Security (HSTS) is a mechanism that lets a website tell the browser that future requests to that name must use HTTPS only. It reduces the risk of falling back to unencrypted HTTP, but also makes certificate errors much more serious for users: the browser may refuse to open the resource if trust is broken.

Enable HSTS only when the entire site works reliably over HTTPS, certificates and automatic renewal are configured, and the required subdomains have no dependencies on HTTP. Initially, use a small value for max-age and monitor how it works. Then increase the duration gradually.

# Пример HTTP-ответа сервера после безопасной настройки:
Strict-Transport-Security: max-age=300

For IIS, you can configure the header through supported IIS or application configuration, but the method depends on the Windows/IIS version and the chosen management method. Do not immediately add includeSubDomains or submit a request for preload: this affects additional addresses and makes rollback more difficult if some of the infrastructure is not ready.

HSTS does not fix an invalid certificate or replace an HTTPS binding. If the site opens with a name mismatch error, fix the certificate and routing first, and only then strengthen browser behavior.

16. How to check the installed certificate and HTTPS from PowerShell

After enabling SSL, check from two points: on the server itself and from outside the local network. The system certificate store shows which certificates are available to Windows, while a network request shows what visitors actually receive. A discrepancy between these results is an important diagnostic clue.

Import-Module WebAdministration
Get-WebBinding -Protocol https |
  Select-Object bindingInformation, sslFlags

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

Test-NetConnection example.ru -Port 443
curl.exe -I https://example.ru
curl.exe -I http://example.ru

In Windows PowerShell, the command curl may be an alias for Invoke-WebRequestin some versions, so the examples use the explicit curl.exe. To analyze the redirect chain, you can add -L, and to check the expiration date, view the certificate details in a browser or use an external TLS test.

It is not recommended to use the parameter -k to “fix” HTTPS: it disables trust verification and hides the real cause of the problem. It may appear in diagnostics, but a successful response with verification disabled does not mean the site is secure.

For a public site, an independent test such as SSL Labs is useful; it checks TLS versions, the certificate chain, and cipher settings. If the external test shows a different certificate, first determine where TLS terminates: on IIS, a load balancer, or a CDN.

17. ERR_CERT_COMMON_NAME_INVALID error: incorrect domain

This warning appears when the name used to open the site does not match the names permitted by the certificate. The server may have a valid certificate for example.ru and at the same time receive an error at www.example.ru, if the additional name is not included in the SAN. Similarly, errors can occur with nested subdomains and technical names.

In IIS, check the HTTPS bindings, hostname, and selected certificate. If several sites are hosted on the same IP, check SNI separately. A certificate for a different site may be displayed because of a binding conflict or the default certificate selection. Checking via the direct IP without SNI is not always conclusive.

Do not try to solve the problem by redirecting from the incorrect domain to the correct one. The browser establishes TLS and checks the name first; the redirect happens later. You first need a certificate and a correct binding for the original address, and only then can you redirect visitors.

18. ERR_CERT_AUTHORITY_INVALID: Trust and the certificate chain

An untrusted issuer error can be caused by a self-signed certificate, a missing intermediate certificate chain, an outdated client trust store, or interference by a network intermediary. A lock icon in the local IIS interface does not prove that users’ browsers trust the certificate.

Check exactly which certificate is served over port 443 and whether there is a valid path to a trusted root CA. If a commercial CA provided intermediate certificates, install them in the documented order. Do not blindly add an unfamiliar certificate to the Windows trusted root store: this affects trust across the entire system.

In a corporate network, intermediate proxies may replace certificates to inspect traffic. If the error appears on only one workstation, compare the results from an independent network without disabling browser protection or installing unknown root certificates “to remove the warning.”

19. ERR_CERT_DATE_INVALID: Expiration, time, and automation

The most obvious cause is that the certificate has expired or the new certificate was not installed on the public binding. However, the warning can also be caused by an incorrect date on the client or incorrect time settings. Start troubleshooting by comparing the current time with the validity dates of the certificate actually received by the browser.

The Windows store may contain a new certificate with a suitable validity period, while the HTTPS binding continues to use the old one. Therefore, compare the thumbprint, date, and name on the external connection itself. For win-acme, also check the Task Scheduler, logs, and whether the certificate was successfully installed in IIS.

If the certificate is close to expiring, do not delete the old certificate or reconfigure all bindings without preparation. It is safer to obtain a new certificate, test it on the required site, confirm that SNI works, and only then remove unused data. This preserves the ability to roll back if problems arise.

20. HTTP-01, DNS-01, and Let’s Encrypt validation errors

When issuing a certificate, the ACME client must prove control over the domain. For HTTP-01, the validation server makes a request to a special HTTP path. Errors often occur when port 80 is inaccessible from the outside, the domain points to the wrong location, the WAF blocks the validation, the site redirects the request to a resource that is inaccessible, or public traffic is routed to another host.

For DNS-01, a correct TXT record is required in the authoritative DNS zone. The result may depend on propagation delays, multiple DNS providers, an incorrect API key, or insufficient permissions to modify records. DNS-01 is especially useful for Wildcard certificates, but it makes protecting DNS API credentials even more important.

With multiple IIS nodes behind a load balancer, ensure that the validation HTTP request reaches the node that prepared the response, or use a shared validation method. Otherwise, certificate issuance may be unreliable. The client logs show what response the validation system received and which domain failed validation.

Do not run dozens of certificate issuance attempts in a row when there is an obvious network accessibility issue. Resolve the cause first and run tests using the client; only then retry the request to the production CA.

21. HTTPS through a CDN, proxy, and load balancer

In large projects, IIS is often behind a reverse proxy. In that case, there are at least two connections: browser to the external entry point, and external entry point to IIS. Each may have its own certificate, and the second connection sometimes uses internal TLS with its own server name. Assess the system as a whole, not just the result on a single node.

If HTTPS terminates at the CDN, the site may appear to work even if the IIS certificate has expired—until the proxy starts validating the origin certificate or the connection mode changes. Conversely, IIS may have the correct binding while the external proxy serves the wrong certificate. Monitoring should therefore cover both sides.

Redirects are particularly sensitive to incorrect forwarding of information about the original scheme. An application behind a proxy may see internal HTTP and require HTTPS again, even though the browser is already connected over HTTPS. Resolve this by aligning the trusted proxy settings, headers, and redirect rule. Do not allow arbitrary clients to control these headers.

22. Private key security and backups

The private key is used to authenticate the server and must remain secret. In IIS, the key may be stored in a system cryptographic provider and associated with the certificate in the computer’s personal store. When exported to PFX, the key is transferred to a file that must be protected with a separate password and stored in an approved secure location.

Access to certificate backups must be restricted. Do not place PFX files in a website directory, public cloud storage, or a source code repository. Do not leave passwords in plain-text PowerShell scripts, emails, or shared chats. If a key is discovered to have been exposed, generate a new key pair, install a new certificate, and assess whether the old one needs to be revoked.

Organizations should document the certificate owner, covered domains, renewal method, secure backup location, and verification schedule. The documentation must not include the secrets themselves. Also check the permissions of the service account under which win-acme installs certificates and modifies IIS bindings.

23. Post-installation checklist

After connecting a certificate, it is useful to check the site against a standard list. It covers not only whether the home page opens, but also all hostnames, TLS settings, redirects, the application, and renewal. This list is useful when moving a site from one Windows Server to another or changing the CA.

CheckExpected result
Domain and DNSBoth IPv4/IPv6 addresses point to active infrastructure
Port 443Accessible from the outside; no blocks along the route
CertificateRequired SANs, valid dates, correct chain
Private keyAvailable to the required service and protected from unauthorized access
IIS BindingsCorrect address, port, hostname, SNI, and certificate
RedirectsHTTP redirects to the required HTTPS address without loops
ContentNo blocked HTTP scripts or unavailable resources
TLSSupported secure versions and ciphers are configured
RenewalThe win-acme task runs successfully; logs are clean
External monitoringChecks the actual certificate presented to visitors

It is especially useful to check less common pages: sign-in, payment redirects, file downloads, the admin interface, and the API. The problem may not be with the certificate itself, but with the application continuing to generate absolute HTTP links. A separate article about Mixed Content can help with these cases.

Finally, record the check date, Windows/IIS version, TLS settings, certificate thumbprint, and recovery procedure. When introducing HSTS and additional security policies, make changes gradually and monitor client errors.

24. Frequently asked questions about SSL for Windows Server and IIS

Can I use a free Let’s Encrypt certificate on IIS?

Yes. Once control over the domain has been validated and a suitable hosting setup is in place, the win-acme client can obtain a publicly trusted certificate and bind it to an IIS site. Stable operation requires automation and verification that the certificate was actually installed.

What is the difference between PFX and CER?

PFX usually contains the certificate and private key, so it is often used to transfer a certificate between servers. CER usually contains only the public part. If the key was created on another machine, a CER file alone may not be enough.

Do I need to buy a separate IP for each site?

Usually not. Modern IIS supports SNI, so multiple HTTPS sites can use the same IP address and port 443 with different certificates. The hostname and bindings must be configured correctly.

Why doesn’t Windows Server 2019 support TLS 1.3?

Schannel support for TLS 1.3 is available starting with Windows Server 2022. For earlier systems, Microsoft does not recommend attempts to enable it through unsafe manual configuration.

Why does HTTPS still show the old certificate?

Often, the new certificate has been imported, but the IIS binding or an external proxy is still using the old one. Check the certificate thumbprint on an actual network connection.

Can I leave port 80 closed?

HTTPS requires port 443. Some ACME validation methods require port 80, but DNS-01 can be used without HTTP-01. The specific choice depends on DNS provider support and the server architecture.

Is a certificate enough to secure an ASP.NET application?

No. HTTPS protects the data transmission channel, but it does not fix authorization errors, SQL injection, library vulnerabilities, incorrect access permissions, or poor secrets management.

25. Sources and official documentation

When modifying production servers, rely on documentation for the installed versions of Windows Server, IIS, and the ACME client. Documentation of settings and capabilities changes over time, so copying outdated instructions without checking them creates downtime risks.

Prepared and reviewed on November 5, 2026. For a production server, take into account OS updates, IIS-specific considerations, CA/Browser Forum changes, and CA settings. All command and interface examples are for learning purposes and must be verified in the specific infrastructure.

IP Geolocation by DB-IP