Unable to get certificate for new host

Hello Support,

We are creating Let’s Encrypt certificate on Windows Server 2012 R2 using command “autoacme addhost www.example.com” as mentioned in below link.

But while creating it is showing below error message.

Getting response…
Failed: The remote server returned an error: (404) Not Found.
Deleting challenge from C:\inetpub\wwwroot\AutoACME\probe_813593e8-1a81-4782-aa81-460b29a6da09…OK
Request failed!
Test authorization failed
Failed!

Please check this and suggest how we can fix this issue.

Thank you.

Hi @malanisourabh

please answer all of the following questions:


Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command:

It produced this output:

My web server is (include version):

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know):

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):


PS: Checking

the last change is from 2019-10. Perhaps some newer changes (GET -> POST) aren’t included, so the client may be expired and may not work -->> use another client.

Hello,

I filled the below details as per mentioned.

My domain is: portal.a1cashadvance.com

I ran this command: autoacme addhost portal.a1cashadvance.com

It produced this output: It shows below error message in command prompt.

Getting response…
Failed: The remote server returned an error: (404) Not Found.
Deleting challenge from C:\inetpub\wwwroot\AutoACME\probe_813593e8-1a81-4782-aa81-460b29a6da09…OK
Request failed!
Test authorization failed
Failed!

My web server is (include version): Windows Server 2012 Standard

The operating system my web server runs on is (include version): Windows 2012 Operating system

My hosting provider, if applicable, is: I don’t know

I can login to a root shell on my machine (yes or no, or I don’t know): I don’t know

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): Using RDP manage the site.

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): I don’t know

Please check this and help us to resolve this.

Thank you.

Looks like that test file isn't visible.

Create the two required directories

c:\inetpub\wwwroot\.well-known\acme-challenge

there a file (file name 1234 without an extension), then try to load that file via

http://portal.a1cashadvance.com/.well-known/acme-challenge/1234

or use the online tool to check, if that file is visible.

That's required to use http validation.

1 Like

Oh - what's that? Checking your domain - https://check-your-website.server-daten.de/?q=portal.a1cashadvance.com

First, it looks good, checking

http://portal.a1cashadvance.com/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de

answers with the expected http result 404 - Not Found.

But there is a lot of content:

Visible Content: HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. Most likely causes: The directory or file specified does not exist on the Web server. The URL contains a typographical error. A custom filter or module, such as URLScan, restricts access to the file. Things you can try: Create the content on the Web server. Review the browser URL. Create a tracing rule to track failed requests for this HTTP status code and see which module is calling SetStatus. For more information about creating a tracing rule for failed requests, click here . Detailed Error Information: Module    IIS Web Core Notification    MapRequestHandler Handler    StaticFile Error Code    0x80070002 Requested URL    http://localhost:80/autoACME/check-your-website-dot-server-daten-dot-de Physical Path    C:\a1cashadvance_new\autoACME\check-your-website-dot-server-daten-dot-de Logon Method    Anonymous Logon User    Anonymous More Information: This error means that the file or directory does not exist on the server. Create the file or directory and try the request again. View more information »

Requested URL http://localhost:80/autoACME/check-your-website-dot-server-daten-dot-de
Physical Path C:\a1cashadvance_new\autoACME\check-your-website-dot-server-daten-dot-de

Looks like there is an internal redirect from /.well-known/acme-challenge to /autoACME

So you have to create the test file there.

But your log

Deleting challenge from C:\inetpub\wwwroot\AutoACME\probe_813593e8-1a81-4782-aa81-460b29a6da09

says, that AutoACME thinks, wwwroot\AutoACME is the correct directory.

So you have a mix of additional definitions.

1 Like

Hello,

Thank you for your reply.

I created folders on “C:\inetpub\wwwroot\well-known\acme-challenge” path like as per mentioned.

After that I run the command autoacme addhost portal.a1cashadvance.com, but still it is showing same error.

Please check this and help us to fix this.

Thank you.

It is .well_known, not well_known. The leading dot is significant.

1 Like

Yes, I forget to add “.” in well_known. After that I run the command and it created certificate.

@JuergenAuer Appreciate your quick response.

Thank you.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.