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: m-it.care
I ran this command:sudo certbot certonly --webroot -w /var/www/html -d m-it.care
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for m-it.care
Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Domain: m-it.care
Type: unauthorized
Detail: 2a01:238:20a:202:1093::: Invalid response from http://m-it.care/.well-known/acme-challenge/x51Lo8dGDJu7l5ssp3_ZLUHLW2TeJsS89uzEytj_XtM: "\n\n\nhttp://m-it.care/.well-known/acme-challenge/x51Lo8dGDJu7l5ssp3_ZLUHLW2TeJsS89uzEytj_XtM\n<meta http"
Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.
Some challenges have failed.
Problem seems to be that the folder token is not generated under .well-known/acme-challenge/...
But when i manually create the token file in folder .well-known/acme-challenge I can access the file from the brower...
http://m-it.care/.well-known/acme-challenge/D-CSsqs6cKr3PJ3_U4Qrg7nss-oYR28q3uSBjgnAbrQ
mh@server:/var/www/html/.well-known/acme-challenge$ more /etc/apache2/sites-enabled/m-it.conf
<VirtualHost *:80>
ServerName m-it.care
ServerAlias www.m-it.care
DocumentRoot /var/www/html
# added manually for debugging
<Directory /var/www/html>
AllowOverride All
Options Indexes FollowSymLinks
Require all granted
</Directory>
<Directory /var/www/html/.well-known>
AllowOverride None
Options None
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/m-it_error.log
CustomLog ${APACHE_LOG_DIR}/m-it_access.log combined
</VirtualHost>
I even removed apache completly and reinstalled everything. I still get the same error.
My web server is (include version):
Server version: Apache/2.4.52 (Ubuntu)
Server built: 2024-07-17T18:57:26
The operating system my web server runs on is (include version):
Linux Mint 21.2 Victoria \n \l
My hosting provider, if applicable, is: strato
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.21.0