I moved the server from Ubuntu 18.04 to Centos 7, I installed Virtumin from the beginning, I requested a new SSL certificate for my domain and got the following error:
Requesting a certificate for hunacoffee.com, www.hunacoffee.com from Let's Encrypt ..
.. request failed : Web-based validation failed : Failed to request certificate :
Traceback (most recent call last):
File "/usr/libexec/webmin/webmin/acme_tiny.py", line 198, in <module>
main(sys.argv[1:])
File "/usr/libexec/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/libexec/webmin/webmin/acme_tiny.py", line 143, in get_crt
raise ValueError("Wrote file to {0}, but couldn't download {1}: {2}".format(wellknown_path, wellknown_url, e))
ValueError: Wrote file to /home/hunacoffee/public_html/.well-known/acme-challenge/SN2cXtQKkU9szRbgW5MGUv-HVezHk57LI3tFj4ncdEI, but couldn't download http://hunacoffee.com/.well-known/acme-challenge/SN2cXtQKkU9szRbgW5MGUv-HVezHk57LI3tFj4ncdEI: Error:
Url: http://hunacoffee.com/.well-known/acme-challenge/SN2cXtQKkU9szRbgW5MGUv-HVezHk57LI3tFj4ncdEI
Data: None
Response Code: None
Response: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618)>
DNS-based validation failed : Failed to request certificate :
usage: acme_tiny.py [-h] --account-key ACCOUNT_KEY --csr CSR --acme-dir
ACME_DIR [--quiet] [--disable-check]
[--directory-url DIRECTORY_URL] [--ca CA]
[--contact [CONTACT [CONTACT ...]]]
acme_tiny.py: error: argument --acme-dir is required
The acme_tiny.py script can be found at the following location. Checking the project source code at github doesnβt show a version flag which is unfortunate.
/usr/libexec/webmin/webmin/acme_tiny.py
However, checking webmin source shows that acme_tiny.py was reintroduced to the project ~20 days ago.