Windows IIS Setup
For Windows Server with IIS.
This guide uses Win-ACME to issue, install, and renew the certificate automatically.
Requirements
- You can access the server through RDP.
- IIS already has a binding for the domain, at least on port 80.
- The domain points to this server.
- You have the Server URL, EAB MAC ID, and EAB MAC key.
TIP
If the IIS site only has a default wildcard binding, Win-ACME may not identify it correctly. Add a clear Host Name binding first.
1. Install Win-ACME
- Open https://www.win-acme.com/.
- Download the latest release.
- Extract it to:
C:\Program Files\Win-ACME- Run
wacs.exeonce to confirm it works.
2. Issue and Install
Open PowerShell as Administrator.
Single domain, including the root domain and www by default:
& "C:\Program Files\Win-ACME\wacs.exe" `
--source iis `
--host "example.com,www.example.com" `
--store certificatestore `
--installation iis `
--baseuri "your Server URL" `
--eab-key-identifier "your EAB MAC ID" `
--eab-key "your EAB MAC key" `
--accepttosMulti-domain:
& "C:\Program Files\Win-ACME\wacs.exe" `
--source iis `
--host "example.com,www.example.com,example.net,shop.example.org" `
--store certificatestore `
--installation iis `
--baseuri "your Server URL" `
--eab-key-identifier "your EAB MAC ID" `
--eab-key "your EAB MAC key" `
--accepttos3. Wildcard Certificate
Wildcard coverage should include:
example.com
*.example.comWildcard certificates require DNS validation. We recommend using CNAME Delegation (Any DNS Provider) in the AutoSSL One-Key Deploy Tool: add one permanent _acme-challenge CNAME record at your DNS provider to enable unattended issuance and renewal on Windows IIS and Windows Apache (including phpStudy and Apache24) without extra DNS plugins.
If you prefer Cloudflare, Alibaba Cloud, or Tencent Cloud DNS API, the One-Key Deploy Tool automatically downloads the Win-ACME pluggable build and matching DNS plugin. Cloudflare plugin example:
& "C:\Program Files\Win-ACME\wacs.exe" `
--target manual `
--host "example.com,*.example.com" `
--validation cloudflare `
--cloudflareapitoken "Cloudflare API Token" `
--store certificatestore `
--installation iis `
--baseuri "your Server URL" `
--eab-key-identifier "your EAB MAC ID" `
--eab-key "your EAB MAC key" `
--accepttosWARNING
Win-ACME DNS plugin parameters may vary by version. Use wacs.exe --help for your installed version.
4. Confirm IIS Binding
Open:
Server Manager -> Tools -> Internet Information Services (IIS) ManagerThen:
Sites -> your site -> BindingsConfirm that HTTPS on port 443 has been created.
5. Check Renewal
& "C:\Program Files\Win-ACME\wacs.exe" --list --baseuri "your Server URL"For troubleshooting, add:
--verbose6. Browser Check
https://example.com