11 Jan 2025
How to Install Free SSL Certificate on Windows Server
SinceĀ Certbot officially dropped support for Windows, you can use Win-ACME, a popular alternative for obtaining SSL certificates from Let's Encrypt on Windows. Here's a step-by-step guide to get you started:
Step 1: Download Win-ACME
- Visit the official Win-ACME website: https://github.com/win-acme/win-acme.
- Under Assets, download the latest .zip file for your version (e.g.,
win-acme.v2.x.x.x.zip
) (for me it'swin-acme.v2.2.9.1701.x64.trimmed.zip
). - Extract the ZIP file to a folder (e.g.,
C:\win-acme
).
Step 2: Run Win-ACME
- Open a Command Prompt as Administrator.
- Navigate to the folder where you extracted Win-ACME:
cd C:\win-acme
- Run the Win-ACME executable:
wacs.exe
Step 3: Follow the Interactive Prompts
Win-ACME will guide you through the process interactively. Here are the general steps:
- Choose the type of certificate: Select
N
for "Create a new certificate (Simple for IIS)". - Choose the site for SSL: It will list the sites configured in IIS. Choose the site you want to secure (e.g.,
www.example.com
). - Choose the certificate type: Select
1
to use Let's Encrypt. - DNS validation or HTTP challenge: Choose the appropriate method for validation. HTTP challenge is the most common and easier to configure.
- HTTP challenge works if your site is accessible publicly via HTTP, and Win-ACME will automatically create the necessary challenge files for Let's Encrypt.
- Install the certificate: After obtaining the certificate, Win-ACME will offer to install it automatically into IIS.
Step 4: Verify the Installation
- After the process is complete, check the IIS Manager:
- Go to your site and open Bindings.
- You should see an SSL certificate (with
HTTPS
) for the site.
Step 5: Automatic Renewal (Optional)
Win-ACME can automatically renew the SSL certificates for you:
- It creates a scheduled task for automatic renewal.
- You can check the scheduled task by typing
taskschd.msc
in the Windows search bar and looking for a task named win-acme.
Additional Notes:
- Ensure that port 80 is open for HTTP challenges to work.
- If you face issues with the installation or certificate renewal, check the Win-ACME logs in the
C:\win-acme\acme-v02.api.letsencrypt.org
folder for more details.
This solution should help you get SSL certificates for your IIS-hosted applications
You may also like
Securing Django Web Applications
This blog provides a comprehensive guide to securing a Django web ap...
Continue readingIntroduction to Web Development with Python Django
Creating a website with Python - Find web development with Python Dj...
Continue readingPython code stucked on driver = webdriver.Chrome()
Python code stucked on driver = webdriver.Chrome()
Continue reading