I’m trying to obtain an SSL certificate for my WordPress site hosted on IIS on a Windows Server 2022 machine using Win-acme (v2.2.9.1701). However, I’m encountering an issue during the HTTP-01 validation process.
Server Setup:
Web Server: IIS on Windows Server 2022
Win-acme Version: 2.2.9.1701
WordPress installed in
C:\inetpub\wwwroot\my-wordpress-folder
Problem:
When running Win-acme to obtain an SSL certificate, I receive the following error message during the HTTP-01 challenge validation step:
{"type":"urn:ietf:params:acme:error:connection","detail":"my-static-ip : Fetching http://example.com/.well-known/acme-challenge/rFvoxqdhXc7brikfPdR8weM1R9OaC_6AwX86IQEJssg: Timeout during connect (likely firewall problem)","status":400}
What I've Tried:
Firewall:
Disabled the firewall entirely for testing.
Directory Setup:
I created the following directory structure in my WordPress root:
C:\inetpub\wwwroot\my-wordpress-folder\.well-known\acme-challenge
I placed a test file named test-file (without any extension) inside the acme-challenge directory.
Permissions:
I’ve confirmed that the IIS user (IUSR and IIS_IUSRS) has read permissions for the .well-known directory and its contents.
Testing Access:
When I access the file locally using http://example.com/.well-known/acme-challenge/test-file, I receive 404 file not found.
Questions :
Why is the file not being served by IIS even though the directory structure and permissions are correct?
What could be causing the timeout during the HTTP-01 validation?
Are there any additional IIS configurations I might be missing to allow this challenge to pass?
Any help would be greatly appreciated!