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. https://crt.sh/?q=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: linuxknowledge.net
I ran this command: bertjan@webserver:~$ sudo certbot --apache -d linuxknowledge.net -d www.linuxknowledge.net
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for linuxknowledge.net
http-01 challenge for www.linuxknowledge.net
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. linuxknowledge.net (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://linuxknowledge.net/.well-known/acme-challenge/UJm5xu9VQ7NwJr_Lu2jP7jiaTuPdXup1-ZgjIgMZ7F4: "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p", www.linuxknowledge.net (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.linuxknowledge.net/.well-known/acme-challenge/8E9QyhJ_tfkxdTlvxHV6ZPfxc7HheM__2bCRahXwy0s: "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p"
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: linuxknowledge.net
Type: unauthorized
Detail: Invalid response from
http://linuxknowledge.net/.well-known/acme-challenge/UJm5xu9VQ7NwJr_Lu2jP7jiaTuPdXup1-ZgjIgMZ7F4:
"<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p"
Domain: www.linuxknowledge.net
Type: unauthorized
Detail: Invalid response from
http://www.linuxknowledge.net/.well-known/acme-challenge/8E9QyhJ_tfkxdTlvxHV6ZPfxc7HheM__2bCRahXwy0s:
"<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<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.4.18
The operating system my web server runs on is (include version): Ubuntu Server 16.04
My hosting provider, if applicable, is: Transip.nl
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): Virtualmin / Webmin
Done so far:
- Checked DNS at my vps provider (both A and AAAA direct to the right adresses)
- Checked AAAA dns record on ipv6-test.com (three green checkmarks)
- Checked firewall settings (https service enabled)
- Created linuxknowledge.net/.well-known/acme-challenge/test with content:success (accessible by browser)
- Ran the above certbot command as sudo su
- Spent a good part of an evening reading topic’s on this forum.