How to install a Let’s Encrypt SSL cert on Microsoft IIS

Post Date: February 20, 2021
Last Updated: November 27, 2026

Introduction

This guide explains how to install a Lets Encrypt SSL cert on Microsoft IIS using win-acme (also called Windows ACME Simple, or WACS). Let’s Encrypt is a free certificate authority, and win-acme is a small program that requests the certificate, binds it to your IIS site and renews it automatically. No manual certificate files or CSR requests are needed.

The original guide listed the main clicks. This version adds the prerequisites that decide whether it works (the site binding, DNS and port 80), a verification step, how renewal works, and troubleshooting with exact error messages. It also moves the program out of the inetpub folder.

Warning: Before you install a Lets Encrypt SSL cert, make sure your site is reachable over HTTP on port 80 with its real host name. If the check fails repeatedly, Let’s Encrypt temporarily blocks new attempts. Back up your IIS configuration first, because the wizard changes the site bindings: %windir%\System32\inetsrv\config\applicationHost.config.

Prerequisites

Before you install a Lets Encrypt SSL cert on IIS, make sure you have:

  • Administrator access to the Windows Server
  • IIS running, with a site that has an HTTP binding on port 80 and the host name set (for example example.com)
  • DNS records for the domain (and www, if used) that point to this server’s public IP
  • Ports 80 and 443 open in the Windows firewall and in any cloud security group
  • Outbound internet access from the server, so it can reach Let’s Encrypt
  • A valid email address for renewal and expiry notices
  • A backup of your IIS configuration

Architecture

  • IIS hosts the website and serves it over HTTP on port 80 and HTTPS on port 443
  • win-acme (wacs.exe) talks to Let’s Encrypt using the ACME protocol, and edits the IIS bindings for you
  • Let’s Encrypt checks that you control the domain by requesting a token file over HTTP (the HTTP-01 challenge) on port 80
  • The Windows certificate store keeps the issued certificate, and IIS binds it to the site on port 443
  • A scheduled task created by win-acme renews the certificate before it expires, because certificates last 90 days

The workflow is to prepare the site, run the wizard, let Let’s Encrypt validate the domain, and let win-acme install the certificate and the renewal task. The image below shows how it fits together. For the official references, see the win-acme documentation and the Let’s Encrypt page on challenge types.

Steps to Install a Lets Encrypt SSL Cert on Microsoft IIS

1. Prepare the IIS Site

Open IIS Manager, select your site, and click Bindings. Confirm there is an HTTP binding on port 80 with your domain in the Host name field. win-acme reads the host names from the bindings, so a site with no host name may not be listed in the wizard.

Check that DNS points to this server. In a command prompt, run:

nslookup example.com

The answer should be your server’s public IP.

2. Download win-acme

Download the latest Windows ACME Simple (WACS) ZIP file from the win-acme releases page on GitHub. Choose the 64-bit release that suits your server. If the ZIP is blocked, right-click it, open Properties, and tick Unblock before you extract it.

3. Extract the Files

Extract the ZIP file to a folder of your choice. The original guide used C:\inetpub\letsencrypt. A folder outside the web root is safer, so C:\win-acme is a better choice:

Expand-Archive -Path .\win-acme.zip -DestinationPath C:\win-acme

Keep this folder. win-acme stores its settings and renewal data there, and the scheduled task runs the program from it.

4. Start the Wizard as Administrator

Right-click wacs.exe and choose Run as administrator. The Windows ACME Simple wizard opens in a console window and shows a menu. It must run as administrator, or it cannot change IIS bindings or the certificate store.

5. Create the Certificate

This is the step where you install a Lets Encrypt SSL cert on the site:

  1. Choose N to create a new certificate. In current versions the menu reads “Create certificate (default settings)”. Use M instead if you need full options.
  2. Select the site from the list, using its ID or name. If you want one certificate for all host names on the site, pick the option that covers all bindings.
  3. Enter an email address for notifications about problems, and accept the terms of service.

win-acme then requests the certificate, completes the HTTP-01 challenge through IIS, stores the certificate, creates an HTTPS binding on port 443, and adds the renewal task. The wizard prints a success message when it is done.

6. Verify the Certificate and the Renewal Task

Open https://example.com in your browser and click the padlock to view the certificate. It should name Let’s Encrypt as the issuer. You can also check from the server:

Test-NetConnection example.com -Port 443

Then confirm the pieces win-acme created:

  • In IIS Manager, open the site’s Bindings and look for an https binding on port 443 with the new certificate
  • In Task Scheduler, look for a task whose name starts with win-acme renew, which runs daily
  • In certlm.msc, open the Web Hosting store to see the certificate

To test renewal without waiting, run wacs.exe --renew from the folder. Let’s Encrypt only renews a certificate when it is close to expiry, so add --force only for a test.

Troubleshooting

If you cannot install a Lets Encrypt SSL cert on IIS, match the message you see:

  • “Timeout during connect (likely firewall problem)”: Let’s Encrypt cannot reach port 80. Open it in the Windows firewall and the cloud security group, and check the DNS record
  • “Invalid response from http://example.com/.well-known/acme-challenge/…: 404”: The challenge file was not served. Check that the site binding matches the domain, and that a redirect or URL Rewrite rule is not sending HTTP requests elsewhere before the challenge
  • “too many failed authorizations recently”: Let’s Encrypt limits repeated failures. Fix the cause, wait an hour, and try again
  • The site does not appear in the wizard: The site has no HTTP binding with a host name. Add one in IIS Manager, then restart the wizard
  • A wildcard name such as *.example.com fails: HTTP validation cannot issue wildcard certificates. Use DNS validation, which needs a DNS plugin or manual records
  • wacs.exe closes at once or shows access errors: Run it as administrator, and unblock the ZIP in its properties
  • The browser still shows the old certificate or a warning: Check that the HTTPS binding uses the new certificate, and that the host name and Require Server Name Indication settings are correct. Clear the browser cache
  • The certificate expired because renewal did not run: Open Task Scheduler and check that the win-acme renew task is enabled, uses an account with permissions, and shows a successful last result. Also check the server date and time
  • The domain is behind a CDN or proxy: Make sure HTTP requests for /.well-known/acme-challenge/ reach your IIS server, or use DNS validation

Conclusion

To install a Lets Encrypt SSL cert on Microsoft IIS, prepare a site with a host name binding on port 80, download win-acme, run wacs.exe as administrator, and follow the wizard. win-acme requests the certificate, binds it to port 443 and creates the renewal task. Verify the padlock, the HTTPS binding and the scheduled task, and fix any failed check before you rely on the renewal. Let’s Encrypt certificates last 90 days, so a working renewal task is what keeps the site secure.

Frequently Asked Questions (FAQs)

Is it free to install a Lets Encrypt SSL cert on IIS?
Yes. Let’s Encrypt certificates and win-acme are free. You only pay for your server and your domain.

Does the certificate renew automatically?
Yes. win-acme creates a scheduled task that checks the certificate daily and renews it when it is close to expiry. Check Task Scheduler once to confirm it exists.

Can I get a wildcard certificate with this method?
Not with the default HTTP validation. Wildcard certificates need DNS validation, so use win-acme’s DNS options.

Where does win-acme store the certificate?
In the Windows certificate store, in the Web Hosting store. IIS uses it through the HTTPS binding that win-acme creates.

Can I use the same certificate for several sites?
Yes, if the host names are all in one certificate request. Otherwise, run the wizard once for each site.

How to Install Let’s Encrypt with Apache on CentOS 7

Nginx Configuration to Enable ACME Challenge Support on All HTTP Virtual Hosts

Talk to Security Experts

Expired or misconfigured SSL certificates can trigger browser warnings, hurt customer trust, and take your website offline. At Pheonix Solutions, our team helps businesses install SSL certificates, automate renewals, harden Windows and IIS servers, and keep websites protected.

We can help you with:

Need help installing Let’s Encrypt on IIS, automating SSL renewals, or securing your Windows servers? Talk to our Security experts to discuss your requirements.

admin

Our team has expertise across software and web development, WordPress, e-commerce, mobile applications, UI/UX, cloud and infrastructure, DevOps, CI/CD, API integration, security, testing, automation, and technical support. The team also works with AI-based software solutions, LLMs, AI workflows, AI agents, and intelligent application development to help businesses automate processes and build smarter digital solutions. We focus on developing, deploying, maintaining, and optimising secure, scalable, and reliable technology solutions while helping businesses adopt modern technologies and drive digital transformation.

Leave a Comment

Blog newsletter

One email a month. Only what we learned.

New posts, post-mortems and the occasional strong opinion. No drip campaigns.

No spam. Unsubscribe anytime.

Work with Pheonix Solutions

Have a project in mind? Let’s build it together.

Web, mobile, cloud and DevOps, built and supported by the engineers behind these articles.

Scroll to Top