Hello,
I am fairly new to certificates and I am having some issues I don't understand. Hope someone can help me out or push me in the right direction.
My domain is:
nederheim.nl
I ran this command:
sudo certbot certonly --apache -v --dry-run
It produced this output:
Performing the following challenges:
http-01 challenge for nederheim.nl
http-01 challenge for www.nederheim.nl
Waiting for verification...
Challenge failed for domain nederheim.nl
Challenge failed for domain www.nederheim.nl
http-01 challenge for nederheim.nl
http-01 challenge for www.nederheim.nl
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: nederheim.nl
Type: unauthorized
Detail: 92.108.177.33: Invalid response from http://nederheim.nl/.well-known/acme-challenge/3IgHPBz_9SnWclnot5w9btJe29OVy4zBxdalz4eu68s: 403
Domain: www.nederheim.nl
Type: unauthorized
Detail: 92.108.177.33: Invalid response from http://www.nederheim.nl/.well-known/acme-challenge/-SSCoBf6SMdLHWb0-dIIMMajj4x04pMV6VqPis1gi2o: 403
Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.
My web server is (include version):
Apache/2.4.52 (Ubuntu)
The operating system my web server runs on is (include version):
Ubuntu 22.04.1 LTS
My hosting provider, if applicable, is:
TransIP
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 1.32.0
Log from apache2
[Fri Dec 02 09:57:49.699509 2022] [access_compat:error] [pid 790742] [client 3.17.74.78:53568] AH01797: client denied by server configuration: /var/lib/letsencrypt/http_challenges/3IgHPBz_9SnWclnot5w9btJe29OVy4zBxdalz4eu68s
[Fri Dec 02 09:57:49.873331 2022] [access_compat:error] [pid 790743] [client 54.202.242.235:12338] AH01797: client denied by server configuration: /var/lib/letsencrypt/http_challenges/3IgHPBz_9SnWclnot5w9btJe29OVy4zBxdalz4eu68s
[Fri Dec 02 09:57:49.906330 2022] [access_compat:error] [pid 790744] [client 23.178.112.107:19374] AH01797: client denied by server configuration: /var/lib/letsencrypt/http_challenges/3IgHPBz_9SnWclnot5w9btJe29OVy4zBxdalz4eu68s
[Fri Dec 02 09:57:49.939463 2022] [access_compat:error] [pid 790745] [client 3.17.74.78:53578] AH01797: client denied by server configuration: /var/lib/letsencrypt/http_challenges/-SSCoBf6SMdLHWb0-dIIMMajj4x04pMV6VqPis1gi2o
[Fri Dec 02 09:57:50.147336 2022] [access_compat:error] [pid 790746] [client 54.202.242.235:12352] AH01797: client denied by server configuration: /var/lib/letsencrypt/http_challenges/-SSCoBf6SMdLHWb0-dIIMMajj4x04pMV6VqPis1gi2o
[Fri Dec 02 09:57:50.169706 2022] [access_compat:error] [pid 790742] [client 23.178.112.106:26592] AH01797: client denied by server configuration: /var/lib/letsencrypt/http_challenges/-SSCoBf6SMdLHWb0-dIIMMajj4x04pMV6VqPis1gi2o
/etc/sites-available settings
<VirtualHost <server ip>:80>
ServerName www.nederheim.nl
ServerAlias nederheim.nl
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/lib/letsencrypt/http_challenges>
Require all granted
</Directory>
<Location /.well-known/acme-challenge>
Require all granted
</Location>
</VirtualHost>
<VirtualHost <server ip>:443>
ServerName www.nederheim.nl
ServerAlias nederheim.nl
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/lib/letsencrypt/http_challenges>
Require all granted
</Directory>
<Location /.well-known/acme-challenge>
Require all granted
</Location>
</VirtualHost>
I am not sure if it makes sense to add the directory and location settings to both the virtual host settings of port 80 and 443 as I said I am fairly new to this