How to apply Let's encrypt SSL in Windows

Introduction

Let’s Encrypt provides free SSL/TLS certificates that help secure your website by enabling HTTPS. On Windows servers, you can easily apply Let’s Encrypt SSL certificates using tools like win-acme or similar ACME clients.

This guide walks you through the process step by step, ensuring your site is protected with a valid SSL certificate and automatically renewed.

Prerequisites

Before applying Let’s Encrypt SSL in Windows, make sure you have:

  • A Windows Server (2016/2019/2022 or later).
  • A domain name pointing to your server’s public IP address.
  • IIS (Internet Information Services) installed and running.
  • Administrator access to the Windows server.
  • Port 80 and 443 open in your firewall for Let’s Encrypt validation.

Steps to Apply Let’s Encrypt SSL in Windows

Step 1: Download the ACME Client (win-acme)

  1. Go to the official win-acme release page
  2. Download the latest .zip package.
  3. Extract it to C:\letsencrypt\ or another preferred directory.

Download Win ACME client

Step 2: Generate SSL certificates

If you need to export the certificate, please change the option "PrivateKeyExportable" to "true" in the settings.json and settings_default.json files.
Export certificate

2.1 Run win-acme in PowerShell

  1. Open Command Prompt as Administrator.
  2. Navigate to the folder:
    cd C:\letsencrypt
  3. Run the client:
    .\wacs.exe

Run win-acme in PowerShell

2.2 Create a New Certificate

  1. Select “N” (New Certificate).
  2. Choose the certificate you would like to create
  3. Choose the site or hostname you want to secure.
  4. Enter your email address for Let’s Encrypt notifications.
  5. Accept the Let’s Encrypt Terms of Service.

Create new certificates

Step 3: Verify Your Domain in IIS

Open IIS and click on the automatically generated link.
Certification information

Certification information