Hi,
My domain is: git.thebluemountain.eu
I ran this command:
sudo certbot renew --apache --dry-run
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Processing /etc/letsencrypt/renewal/git.thebluemountain.eu.conf
Cert is due for renewal, auto-renewing…
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for git.thebluemountain.eu
Waiting for verification…
Cleaning up challenges
Attempting to renew cert (git.thebluemountain.eu) from /etc/letsencrypt/renewal/git.thebluemountain.eu.conf produced an unexpected error: Failed authorization procedure. git.thebluemountain.eu (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from https://git.thebluemountain.eu/gitklub.well-known/acme-challenge/cG2Q2K3c9ZH44w0_tCUdUjryhUJxOh_Ljo4ofMgXT20 [37.187.238.35]: “\n\n404 Not Found\n\n
Not Found
\n<p”. Skipping.All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/git.thebluemountain.eu/fullchain.pem (failure)
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates below have not been saved.)
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/git.thebluemountain.eu/fullchain.pem (failure)
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates above have not been saved.)
1 renew failure(s), 0 parse failure(s)
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: git.thebluemountain.eu
Type: unauthorized
Detail: Invalid response from
https://git.thebluemountain.eu/gitklub.well-known/acme-challenge/cG2Q2K3c9ZH44w0_tCUdUjryhUJxOh_Ljo4ofMgXT20
[37.187.238.35]: “\n\n404 Not
Found\n\nNot Found
\n<p”To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
My web server is (include version):
apache 2
sudo apache2 -v
Server version: Apache/2.4.25 (Debian)
Server built: 2018-11-03T18:46:19
The operating system my web server runs on is (include version):
linux debian
cat /etc/debian_version
9.8
My hosting provider, if applicable, is:
ovh
I can login to a root shell on my machine (yes or no, or I don’t know): yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot):
sudo certbot --version
certbot 0.28.0
-
I had been trying to renew the certificate for about a month, unsuccessfully.
-
apache server used to be opened on 443 port only.
I have opened the apache server to port 80 to redirect to port 443
ServerName git.thebluemountain.eu
ServerSignature Off
RewriteEngine On
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
ErrorLog /var/log/apache2/redirect.error.log
LogLevel warn
-
apache server used to provide access to a custom app server.
i have allowed for accessing a directory adding
…
DocumentRoot /var/www
…
-
i have created directory /var/www/.well-known/acme-challenge and a file xxx.txt inside
curl -L http://git.thebluemountain.eu/.well-known/acme-challenge/xxx.txt shows the content of the file once redirected to https://git.thebluemountain.eu/.well-known/acme-challenge/xxx.txt -
I have opened the apache server to port 80 again using default 000-default.conf but test was failing with same error message
I now have less than a month for the validity of the certificate and i have no idea of what to do.
any help would be greatly appreciated as i’m kind of stuck now.