This time I also wanted to create a SSL certificate for the mail domain but when I add my mail domain to the certbot commandline tool it fails with below error.
When looking at my DNS settings I see an A-record with the same IP address as my www domain name.
My domain is:
I ran this command:
letsencrypt certonly -d stranger.nl,www.stranger.nl,mail.stranger.nl --manual
It produced this output:
Cleaning up challenges
Failed authorization procedure. mail.stranger.nl (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://mail.stranger.nl/.well-known/acme-challenge/[secret] [220.127.116.11]: "\n\n404 Not Found\n\n
The following errors were reported by the server:
Detail: Invalid response from
[18.104.22.168]: "\n\n404 Not
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):
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know):
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
The version of my client is (e.g. output of
certbot --version or
certbot-auto --version if you're using Certbot):