Installing and Automating Lets Encrypt Certificates on Windows
After migrating my blog to 11ty last year, I no longer had to worry about managing SSL certificates, as Netlify automatically handles them via Let’s Encrypt. However, I still manage other sites where SSL certificate renewal is a manual process—especially for scenarios like getcfmljobs.com, which is hosted on a Windows server and requires annual SSL certificate renewal, involving manual authentication and installation.
Let’s Encrypt solves this issue by providing free, trusted SSL certificates with 90-day validity. Additionally, it offers options to automate the renewal process, depending on your operating system or hosting platform. Here, I’ll walk you through the simple steps to set up Let’s Encrypt on a Windows Server for sites hosted on IIS.
Install Win-Acme on your hosting server by downloading it from Win-Acme. Extract the files and move them to the C drive. Run “wacs.exe” to start the installation process.
Select “N” to use the default setting. It will scan and list the websites configured in IIS.
- Use the identifiers to select the site where you want to install. I chose option 7.
- Select the bindings you want to include; I chose option A to create both bindings. Then, provide your email to receive notifications about any errors or abuse.
This will generate and install the certificate, then create a Windows scheduled task to automate the renewal process.
The scheduled task will include a command that runs daily to check the certificate’s expiration and renew it automatically.
Related Link:
Feel free to reach out with any questions or comments. Happy automating!