I recently created a new VirtualHost, wp.boba.org, on my Apache server. This website is in addition to a number of other existing websites. All the other websites were configured with HTTPS using certbot. This new website consistently fails certificate creation.
The core message seems to be “The client lacks sufficient authorization”. I have no idea why. The command is run with sudo. All the other sites’ certificates are are valid and auto renew works. the directory /var/www/wp.boba.org and subdirectories have the same permissions as other directories on the webserver.
The DNS record for this site is the same as the DNS records for other sites on the same certificate.
My domain is: boba.org
I ran this command: sudo certbot --apache
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Which names would you like to activate HTTPS for? (list edited because new users limited to 20 URLs in a post)
1: alanboba.net
2: www.alanboba.net
9: boba.org
11: sclc.boba.org
12: train.boba.org
13: training.boba.org
14: wp.boba.org
15: www.wp.boba.org
16: www.boba.org
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter ‘c’ to cancel): 1 2 9 11 12 13 14 15 16
You have an existing certificate that contains a portion of the domains you
requested (ref: /etc/letsencrypt/renewal/alanboba.net.conf)
to stay within url limits for new users, in the remainder of this post, the 14th and 15th URLs, the new URLs,in the list above will be referred to as NewURL1 and NewURL2 respectively.
It contains these names: #1, #9, #11, #12,
#13, #2, #16
You requested these names for the new certificate: #1, #9, #11, #12,
#13, #2, #16, NewURL2, NewURL1.
Do you want to expand and replace this existing certificate with the new
certificate?
(E)xpand/©ancel: E
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for NewURL2
http-01 challenge for NewURL1
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. NewURL1 (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://wp.boba.org/.well-known/acme-challenge/ahMrRrWS3xQeJa9htNQViX12_HiSKUb9J6xb4F4WPoY [67.86.147.116]: “\n\n404 Not Found\n\n
Not Found
\n<p”, www.wp.boba.org (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://NewURL2/.well-known/acme-challenge/7xeOBOtipDHw9rj5R4b4jZxsuKzcCEFqtgUL5TRz-eQ [67.86.147.116]: “\n\n404 Not Found\n\nNot Found
\n<p”IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: NewURL1
Type: unauthorized
Detail: Invalid response from
http://NewURL1/.well-known/acme-challenge/ahMrRrWS3xQeJa9htNQViX12_HiSKUb9J6xb4F4WPoY
[67.86.147.116]: “\n\n404 Not
Found\n\nNot Found
\n<p”Domain: NewURL2
Type: unauthorized
Detail: Invalid response from
http://NewURL2/.well-known/acme-challenge/7xeOBOtipDHw9rj5R4b4jZxsuKzcCEFqtgUL5TRz-eQ
[67.86.147.116]: “\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):
:~$ /usr/sbin/apache2 -v
Server version: Apache/2.4.18 (Ubuntu)
Server built: 2019-10-08T13:31:25
The operating system my web server runs on is (include version):
:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
My hosting provider, if applicable, is: n/a, it’s me.
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):
:~$ certbot --version
certbot 0.31.0