Tutorials  /  Security

Install Let's Encrypt SSL on Windows Server IIS | Free HTTPS Setup Guide

Ccentron Redaktion · September 2025 ·7 min read ·Security, Tutorial

Securing web applications with HTTPS is crucial for protecting data in transit and ensuring user confidence. This guide shows how to install a free Let's Encrypt SSL/TLS certificate on Windows Server using Internet Information Services (IIS).

You’ll use the win-acme client to request and apply the certificate, bind it in IIS, and configure automatic HTTPS redirection. Optional instructions for Certbot and manual .pfx conversion are also included for advanced scenarios.

Install IIS

IIS is a built-in component of Windows Server that you can enable via Server Manager.

  1. Open Server Manager from the Start menu.
  2. Click Add Roles and Features.
  3. Select Role-based or feature-based installation, then choose your server.
  4. On the Server Roles screen, check Web Server (IIS).
  5. Add any other required features, then click Install.

After installation, verify IIS by visiting your public server IP in a browser:

http://YOUR-SERVER-IP

You should see the default IIS welcome page.

SEC

Matching infrastructure at centron

Hardening does not stop at the server: cloud firewalls filter traffic before it reaches the VM – centrally managed, no per-rule surcharge. Explore cloud firewalls →

Create a Simple Web Application

To confirm IIS is serving content correctly, set up a basic HTML page:

  1. Open File Explorer and create a folder for your site.
  2. Press Win + R, type notepad, and hit Enter.
  3. Paste the following HTML code into Notepad:
Code
<html> <head> <title>Hello World</title> </head> <body> <h1>Hello World!</h1> </body> </html>

Save the file as index.html in the folder you just created.

Next, you’ll configure IIS to serve this directory under your domain.

Set Up an IIS Site with Your Domain

  1. Open IIS Manager from the Start Menu under Windows Administrative Tools.
  2. In the Connections pane, expand your server name, right-click Sites, and choose Add Website.

In the Add Website window, configure:

Click OK to create and start the site.

Verify by opening http://example.com in a browser. You should see your “Hello World” page.

Request and Install a Let's Encrypt Certificate

You can obtain a free SSL/TLS certificate from Let’s Encrypt using either:

Using Win-acme

Win-acme is a lightweight client that installs certificates into the IIS store and configures HTTPS automatically.

  1. Download the latest Win-acme zip archive.
  2. Extract it and run wacs.exe as Administrator.
  3. If SmartScreen appears, click More info > Run anyway.
  4. Press N to create a new certificate.
  5. Select your site from the IIS domain list.
  6. Press A to apply the certificate to all bindings.
  7. Accept defaults (Y to continue, agree to Let’s Encrypt terms).
  8. Enter your email address when prompted.

Win-acme automatically:

Once complete, open https://example.com in a browser to confirm HTTPS is active.

Using Certbot

Certbot is a flexible client but requires manual certificate binding in IIS.

Install Certbot

  1. Download Certbot for Windows and run the installer.
  2. Open PowerShell as Administrator and run:
Code
certbot -d example.com -m admin@example.com --agree-tos --webroot

Enter your site directory when prompted. Certificates are stored as .pem files in:

C:\Certbot\live\example.com\

Convert to .pfx Using OpenSSL

  1. Install OpenSSL for Windows.
  2. Open PowerShell and navigate to OpenSSL’s bin folder:
Console
cd "C:\Program Files\OpenSSL-Win64\bin"

Convert your certificate into .pfx format:

Code
.\openssl.exe pkcs12 -export `
  -out C:\Certbot\live\example.com\certificate.pfx `
  -inkey C:\Certbot\live\example.com\privkey.pem `
  -in C:\Certbot\live\example.com\fullchain.pem

Import and Bind the Certificate

  1. Open IIS Manager.
  2. Select your server, then open Server Certificates.
  3. Click Import, choose your .pfx file, enter the password, and confirm.
  4. Navigate to Sites, select your domain, and click Bindings.
  5. Click Add, select https, and configure:

Click OK to apply the binding. Visit https://example.com to confirm the certificate is active.

Redirect HTTP Requests to HTTPS

Use the IIS URL Rewrite module to automatically redirect all HTTP traffic to HTTPS.

Install the URL Rewrite Module

  1. Download the URL Rewrite module.
  2. Run the installer and finish the setup.
  3. Open IIS Manager, select your server, and verify that URL Rewrite appears in Features View.

Create a Redirect Rule in IIS

  1. In IIS Manager, expand your server and select your website under Sites.
  2. Double-click URL Rewrite.
  3. In the Actions pane, click Add Rules.
  4. Under Inbound Rules, select Blank rule and click OK.
  5. Give the rule a name (e.g., Redirect to HTTPS).
  6. Keep Requested URL as Matches the Pattern, using Regular Expressions.
  7. Set the pattern to:
Code
(.*)

Uncheck Ignore case.

Add a Condition

  1. Expand Conditions and click Add.
  2. Set Condition input to:

{HTTPS}

  1. Keep Check if input string as Matches the Pattern.
  2. Set the pattern to:
Code
^OFF$

Click OK.

Define Redirect Action

  1. Scroll to Action settings and configure:
Code
https://{HTTP_HOST}{REQUEST_URI}

Click Apply in the Actions pane.

Test the Redirect

Open your browser and go to:

http://example.com

You should be redirected automatically to the HTTPS version.

If the redirect does not work, verify that a web.config file exists in your site root. If it’s missing, create one with the following content:

Code

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rulename="Redirect to HTTPS"stopProcessing="true">
<matchurl="(.*)"/>
<conditions>
<addinput="{HTTPS}"pattern="^OFF$"/>
</conditions>
<actiontype="Redirect"url="https://{HTTP_HOST}{REQUEST_URI}"appendQueryString="false"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

Save the file and test the redirect again in your browser.

Conclusion

In this tutorial, you learned how to secure a website hosted on Internet Information Services (IIS) with a free Let’s Encrypt SSL/TLS certificate on Windows Server. You configured IIS, created a basic web app, installed the certificate using either win-acme or Certbot, set up HTTPS bindings, and redirected HTTP traffic to HTTPS.

With SSL fully configured, your server is now ready for secure hosting. To extend this setup, you can install WordPress on IIS or use PHP Manager to run dynamic applications.

Jetzt 200 € Guthaben sichern

Testen Sie Ihr Setup auf ccloud³

Registrieren Sie sich in der ccloud³ und erhalten Sie 200 € Startguthaben für Ihr Projekt – z. B. für eine PostgreSQL-VM mit automatischen Backups.

Jetzt loslegen
centron Redaktion Technische Redaktion

Das Redaktionsteam von centron schreibt Anleitungen aus dem Betriebsalltag: getestet auf unserer eigenen Plattform, betrieben im Rechenzentrum in Hallstadt bei Bamberg.

Kategorie Security
Teilen
Noch offene Fragen?

Unser Team hilft Ihnen bei Ihrem konkreten Setup weiter – von Menschen, die die Plattform selbst betreiben.

War dieses Tutorial hilfreich?

Ihre Antwort wird anonym gespeichert und hilft uns, die Tutorials zu verbessern.

Kommentare

Noch keine Kommentare – stellen Sie die erste Frage zu diesem Tutorial.

Zum Kommentieren anmelden

Kommentare stehen centron-Kunden offen. Melden Sie sich in Ihrem Konto an, um eine Frage zu diesem Tutorial zu stellen.

Weiterlesen

Das könnte Sie auch interessieren

Jetzt kostenlos anfangen

Melden Sie sich an und erhalten Sie in den ersten 60 Tagen ein Guthaben von 200 € bei centron.

Dieses Werbeangebot gilt nur für neue Konten. Angebot ausschließlich für Gewerbetreibende.

Jetzt loslegen Sales kontaktieren