Cannot renew certificate

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. crt.sh | 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: https://sctch.co.il

I ran this command: from win-acme

It produced this output:
[INFO] Force renewing certificate for [Manual] sctch.co.il
[WARN] First chance error calling into ACME server, retrying with new nonce...
[INFO] Authorize identifier: sctch.co.il
[INFO] Cached authorization result: valid
[INFO] Authorize identifier: www.sctch.co.il
[INFO] Authorizing www.sctch.co.il using http-01 validation (FileSystem)
[INFO] Answer should now be browsable at http://www.sctch.co.il/.well-known/acme-challenge/UG-ajdVVR6hrDeu2cCt0vQ95YOdeum_mxY5jlXOqX40
[WARN] Preliminary validation failed, found (null) instead of UG-ajdVVR6hrDeu2cCt0vQ95YOdeum_mxY5jlXOqX40.DBfAjJBOeiMcz-ocDTx2iwCr3rAEO64lpMPir1lhtmk
[EROR] {
"type": "urn:ietf:params:acme:error:unauthorized",
"detail": "The key authorization file from the server did not match this challenge "UG-ajdVVR6hrDeu2cCt0vQ95YOdeum_mxY5jlXOqX40.DBfAjJBOeiMcz-ocDTx2iwCr3rAEO64lpMPir1lhtmk" != "hello world"",
"status": 403
}
[EROR] Authorization result: invalid
[EROR] Renewal for [Manual] sctch.co.il failed, will retry on next run

My web server is (include version): apache

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

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):

I am having trouble renewing the certificate win-acme cannot renew trough http://www.sctch.co.il
Is there any way of making win-acme renewal through http://sctch.co.il instead of www.sctch.co.il
The site cannot be reached through www .

1 Like

Why does your webserver reply with "hello world" when asked for the challenge token? :face_with_monocle: That's weird.. It seems the only thing your webserver does is reply with "hello world". Let's Encrypt requires to see the actual content of the challenge file and not "hello world".

1 Like

thank you for your reply
the server works if it is http or https but not with www
I don't know why.
I also have another website on the same server its https://scts.co.il and it does work with www.scts.co.il too.

1 Like

I see you've Cloudflare enabled. Could it be a Cloudflare thing?

In any case, the fact your www site just returns hello world for every request is not a Let's Encrypt issue. It's the cause why it's not working, but I have the feeling this is something you should fix and we're not really the right Community to talk you through such a basic webserver configuration issue.

1 Like

I checked cloudflare it is not the reason.
I just want to know if it is possible to make win-acme authenticate without the WWW

Hello again
I fixed the "hello world" problem via dns .
But the renewal still in error as follow :

[INFO] Force renewing certificate for [Manual] sctch.co.il
[WARN] First chance error calling into ACME server, retrying with new nonce...
[INFO] Authorize identifier: sctch.co.il
[INFO] Cached authorization result: valid
[INFO] Authorize identifier: www.sctch.co.il
[INFO] Authorizing www.sctch.co.il using http-01 validation (FileSystem)
[INFO] Answer should now be browsable at http://www.sctch.co.il/.well-known/acme-challenge/LSxQMDanymWYwFUjhNb1pccceZfL_su7XcnX-8FtM4A
[EROR] Preliminary validation failed
System.Net.WebException: The remote name could not be resolved: 'www.sctch.co.il'
at System.Net.HttpWebRequest.GetResponse()
at PKISharp.WACS.Plugins.ValidationPlugins.HttpValidation2.WarmupSite() at PKISharp.WACS.Plugins.ValidationPlugins.HttpValidation2.PrepareChallenge()
[EROR] {
"type": "urn:ietf:params:acme:error:dns",
"detail": "DNS problem: NXDOMAIN looking up A for www.sctch.co.il - check that a DNS record exists for this domain",
"status": 400
}
[EROR] Authorization result: invalid
[EROR] Renewal for [Manual] sctch.co.il failed, will retry on next run

I'm not seeing any issue with the DNS resolving of your www subdomain. The error is also not from Let's Encrypt itself it seems, but from WACS trying to do a preliminary "pre-test" of the hostname locally which is failing.

Can your host resolve the hostname itself?

this is what I get:

[INFO] Force renewing certificate for [Manual] sctch.co.il
[WARN] First chance error calling into ACME server, retrying with new nonce...
[INFO] Authorize identifier: sctch.co.il
[INFO] Cached authorization result: valid
[INFO] Authorize identifier: www.sctch.co.il
[INFO] Authorizing www.sctch.co.il using http-01 validation (FileSystem)
[INFO] Answer should now be browsable at http://www.sctch.co.il/.well-known/acme-challenge/igxSUlCFynRrUpJkcaWcY7vnfDc4HVWUj50awYqTqH4
[EROR] Preliminary validation failed
System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.HttpWebRequest.GetResponse()
at PKISharp.WACS.Plugins.ValidationPlugins.HttpValidation2.WarmupSite() at PKISharp.WACS.Plugins.ValidationPlugins.HttpValidation2.PrepareChallenge()
[EROR] {
"type": "urn:ietf:params:acme:error:unauthorized",
"detail": "Invalid response from https://www.sctch.co.il/.well-known/acme-challenge/igxSUlCFynRrUpJkcaWcY7vnfDc4HVWUj50awYqTqH4 [192.115.85.211]: "\n\t\n\t<html class=\"html\" dir=\"rtl\" lang=\"he-IL\">\n\t\t\n\t\t\t<meta charset=\"UTF-8\">\n\t\t\t<link rel=\"profile\" href=\"ht"",
"status": 403
}
[EROR] Authorization result: invalid
[EROR] Renewal for [Manual] sctch.co.il failed, will retry on next run

You're using Apache on Windows so you need to configure apache to pass /.well-known/acme-challenge requests through to the filesystem instead of passing them to your website content management system (php application etc).

I don't remember the config but you can probably google it.

the address : http://www.sctch.co.il/.well-known/acme-challenge/test.txt is rechable from the browser so its not suppose to be a problem for the wase to reach it
Dosnt it ?

does someone know how can I run commands and scriptes instaed of menu?

Yes that looks good - does it still work if you rename the file to remove the .txt extension? acme challenge files don't have a file extension.

Regarding the different options for win-acme I can't really help other than point you to https://www.win-acme.com/ and GitHub - win-acme/win-acme: A simple ACME client for Windows (for use with Let's Encrypt et al.)

I can help with https://certifytheweb.com though :slight_smile:

Yes it works without the txt extansion

Ok, as long as win-acme is writing the acme-challenge files into that folder then it should all work.

If you did change your DNS records for www. - this may take few days to actually be updated: https://ns1.com/resources/dns-propagation

It could work on your machine (your DNS was updated), but don't work on another machine (its DNS was not yet updated).

Just wait few days and retry.

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