Debian 10 (VPS at OVH)
Virtualmin 6.08
Webmin 1.941
Usermin 1.791
Reinstalled new O/S to my VPS. Debian 10.
Installed Webmin with the LAMP stack.
Generated new user as Server Admin User.
Installed main virtual server with ssl website option (Xorex.rocks). Could not generate SSL certificate.
installed additional virtual servers ns1.xorex.rocks and ns2.xorex.rocks with identical options to main server xorex.rocks.
Redirect set to always redirect http calls to https.
BIND enabled and name servers appear to be working (although I have not been able to cluster them but that will be a separate topic).
Tried to run Let’s Encrypt but got the same message:
I ran this command:
Virtualmin:Server Configuration:SSL Certificate:Let’s Encrypt:Request certificate for: Domain names listed here: xorex.rocks
It produced this output:
Requesting a certificate for xorex.rocks from Let’s Encrypt …
… request failed : Web-based validation failed : Failed to request certificate :
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 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/xorex.rocks/public_html/.well-known/acme-challenge/7chSbLPN08aQA_laf1bLbXcriW34paoJhWxrBccXn6Q, but couldn’t download http://xorex.rocks/.well-known/acme-challenge/7chSbLPN08aQA_laf1bLbXcriW34paoJhWxrBccXn6Q:Error:
Url: http://xorex.rocks/.well-known/acme-challenge/7chSbLPN08aQA_laf1bLbXcriW34paoJhWxrBccXn6Q
Data: None
Response Code: 404
Response:
404 Not Found
Not Found
The requested URL was not found on this server.
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
Took the issue to Let’s Encrypt and they tell me there is an issue with the script:
**> acme_tiny.py: error: argument --acme-dir is required
something you have to fix. May be a too old version of that client or of your VirtualMin.**
There is no .well_known directory written to public_html. This could either be because the script is making http calls or a permissions issue?
Can anyone help me resolve this please?