IIS Free SSL Auto-Renew with win-acme
IIS can install a certificate, but it cannot request or renew one. If you paste a free certificate into IIS by hand, you will repeat that job every few months, and shorter lifetimes make it worse. The usual fix is an ACME client for Windows that issues the certificate, binds it to the site and renews it from a scheduled task. This guide uses win-acme, with a note on its fork. If you have not installed a certificate on IIS before, read how to install free SSL on IIS first.
Which client to use
The win-acme project describes itself as an ACMEv2 client for Windows, simple to start with and able to cover most cases. Its documentation lists these features: a simple interface for a local IIS server, a scheduled task created automatically to renew certificates when needed, wildcard and international names, several validation plugins, storage as PFX or PEM files, and unattended command line operation. It works with Let's Encrypt, ZeroSSL and other ACME services.
The GitHub repository is now labeled as maintained by ZeroSSL. A separate project called simple-acme describes itself as a cross platform fork of win-acme. Pick one and stay with it, because their task and settings folders are separate.
| Need | win-acme setting |
|---|---|
| One site on IIS | Simple mode, pick the site |
| Wildcard certificate | DNS validation plugin |
| Many sites | Advanced mode, or a command line per site |
| Certificate for another app | Store as PEM or PFX files |
Step 1: Prepare
- Use a server where the site answers on port 80 for its domain. HTTP validation needs it.
- Make sure the IIS site has a binding for the host name, such as
example.com. - Run PowerShell as Administrator.
If the site redirects HTTP to HTTPS for every path, keep the /.well-known/acme-challenge/ folder reachable over HTTP. Otherwise validation fails. See how HTTP-01 validation works.
Step 2: Install and issue
Download the zip from the project site and unpack it to a folder such as C:\tools\win-acme. The documentation says to run wacs.exe. Alternatively, with .NET installed, dotnet tool install win-acme --global installs it, and you start it with wacs.exe.
cd C:\tools\win-acme
.\wacs.exe
In the menu, choose to create a certificate with default settings, pick your IIS site and accept the terms. The client requests the certificate, imports it into the Windows store and updates the HTTPS binding for you.
Step 3: Confirm the scheduled task
The client creates the renewal task by itself. Check that it exists and ran:
Get-ScheduledTask |
Where-Object TaskName -like '*acme*' |
Get-ScheduledTaskInfo
Look at LastRunTime and LastTaskResult. A result of 0 means the last run succeeded. The task runs under an account that must have rights to the certificate store and to IIS.
Step 4: Test renewal
Do not wait months to learn that renewal is broken. Read the client's log after the first scheduled run, and check the task history in Task Scheduler. After a real renewal, the expiry date of the bound certificate should move forward. You can read it from PowerShell:
Get-ChildItem Cert:\LocalMachine\My |
Sort-Object NotAfter |
Format-Table Subject, NotAfter, Thumbprint
Compare the thumbprint with the one shown in the IIS binding. If you test settings, use the staging service of your CA first, because production has rate limits (see how to fix renewal errors).
If renewal stops
- **The task ran but the site shows an old certificate.** The binding still points to the old thumbprint. Re-run the setup for that site.
- **Validation fails after a firewall or redirect change.** Reopen port 80 and the challenge folder.
- **The task never runs.** The server was off at the time, or the account password changed. Check the task history.
- **Using a PFX you made yourself.** Use the client for the whole job, or follow the PEM to PFX guide.
Related Windows hosting guides: IIS PFX installation and the OpenSSL legacy flag for Windows. Check expiry any time with the free SSL checker.
Sources: win-acme project site and GitHub repository, simple-acme GitHub repository.
✅ Post-Installation Verification & SEO Checklist
After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:
- Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
- Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
- Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
- Confirm both root and
wwwversions resolve cleanly to one canonical HTTPS URL. - Verify your HTTPS property and
sitemap.xmlinside Google Search Console and Bing Webmaster Tools.