WIN-ACME

A simple ACMEv2 client for Windows (for use with Let's Encrypt et al.)

System requirements

Officially Microsoft only supports Windows Server 2012 R2 SP1 and higher for .NET7, which this program builds on. The program has been known to work on Windows Server 2012 as well, but no guarantees can be given.

Those stuck on Windows 2008 (sorry!) can try release 2.1.20, which was the last one built on .NET5, or 2.0.12.1, which was the last one built on .NET4. Neither of those releases are going to receive support anymore though.

Common startup problems

  • You may need to install Microsoft Visual C++ 2015 Redistributable Update 3
  • If you run into an error about api-ms-win-crt-runtime-l1-1-0.dll you may need KB2999226.
  • If you run into an error about hostfxr.dll you may need KB2533623.
  • If you run into an error like Failure processing application bundle., perhaps this thread might provide a solution.
  • If the program doesn’t seem to start but an error like Microsoft.Windows.Apprep.ChxApp_cw5n1h2txyewy:App.AppXc99k5qnnsvxj5szemm7fp3g7y08we5vm.mca appears in the Event Viewer this thread might provide a solution.

Microsoft IIS

Server Name Indication

Server Name Indication (SNI) is supported from IIS 8.0 (Windows Server 2012) and above. This feature allows you to have multiple HTTPS certificates on the same IP address. Without it, you can only configure a single certificate per IP address.

Workarounds for IIS 7.x

If you want to have SSL for multiple sites with multiple domains with IIS 7.5 or lower all bound to the same IP address your choices are:

  • Create a single certificate for all sites. That only works if there are less than 100 domains in total (that’s the maximum Let’s Encrypt will currently support)
  • If they are subdomains of the same root, a wildcard certificate can be an option.

Configuring the IP address

When win-acme creates the binding for a new certificate, it will bind the wildcard (*) IP address by default. In other words, incoming connections on all network interfaces will handeled using the certificate. You can customize this with the --sslipaddress switch from the command line, or manually after win-acme created the binding. On renewal, the program will preserve whatever setting is configured in IIS.

Wildcard bindings

Wildcard bindings are only supported on IIS 10 (Windows Server 2016+). Wildcard certificates can be created with older versions of IIS but their bindings will have to be configured manually.

FTPS bindings

Updating FTPS binding is only supported for IIS 7.5 (Windows 2008 R2) and above.