Hi there. I installed the SSL certificate manually and it is working fine, however, Let's Encrypt from the Webmin control panel (GUI) seems to be having issues requesting a certificate directly from Let's Encrypt or automating the process. After looking into the error logs a bit, I think it might be an error in Apache's configuration but I can't figure out what I need to change exactly.
My domain is:
website.net
website.ca
I ran this command: Using Webmin, I went to Webmin Configuration > SSL Encryption > Let's Encrypt > Request Certificate
It produced this output:
Traceback (most recent call last):
File "/usr/share/webmin/webmin/acme_tiny.py", line 198, in
main(sys.argv[1:])
File "/usr/share/webmin/webmin/acme_tiny.py", line 194, in main
signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca, disable_check=args.disable_check, directory_url=args.directory_url, contact=args.contact)
File "/usr/share/webmin/webmin/acme_tiny.py", line 149, in get_crt
raise ValueError("Challenge did not pass for {0}: {1}".format(domain, authorization))
ValueError: Challenge did not pass for website.ca: {'identifier': {'type': 'dns', 'value': 'website.ca'}, 'status': 'invalid', 'expires': '2021-10-21T10:20:08Z', 'challenges': [{'type': 'http-01', 'status': 'invalid', 'error': {'type': 'urn:ietf:params:acme:error:unauthorized', 'detail': 'Invalid response from http://website.ca/.well-known/acme-challenge/5ju3wnFdXWiIkvPU1HNFyh3QExFtUSD-TUrELiZLooQ [149.56.44.161]: "\n\n404 Not Found\n\n
Not Found
\n<p"', 'status': 403}, 'url': 'https://acme-v02.api.letsencrypt.org/acme/chall-v3/39822958450/Ft6hmg', 'token': '5ju3wnFdXWiIkvPU1HNFyh3QExFtUSD-TUrELiZLooQ', 'validationRecord': [{'url': 'http://website.ca/.well-known/acme-challenge/5ju3wnFdXWiIkvPU1HNFyh3QExFtUSD-TUrELiZLooQ', 'hostname': 'website.ca', 'port': '80', 'addressesResolved': ['149.56.44.161'], 'addressUsed': '149.56.44.161'}], 'validated': '2021-10-14T23:31:01Z'}]}My web server is (include version): Linux 4.19.0-18-amd64 on x86_64
The operating system my web server runs on is (include version): Debian Linux 10 (Buster)
My hosting provider, if applicable, is: OVH. I've already ruled out the firewall as a probable cause.
I can login to a root shell on my machine (yes or no, or I don't know): Yes. I use PuTTY.
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): Yes, Webmin.
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): certbot 1.20.0