I’m running
- Ubuntu 18.04
- Virtualmin 6.09.gpl
- Apache 2.4.29
- Webmin 1.942
I’ve added a new Virtual Server - only enabling
- Apache Website
- Apache SSL Website
Uploaded the content (static) into public_html and it is viewable. HTTPS gives the usual complaint about an untrusted cert (self signed out of the box).
Selecting the Virtual Server in Virtualmin and going to Server Configuration >> SSL Certificate - the Current Certificate tab confirms it’s a self signed one. Going to the Let’s Encrypt tab and clicking the Request Certificate button, leaving everything default (it says it’s requesting a cert for www.myDomain.com & myDomain.com) I get the following error:
Requesting a certificate for myDomain.com, myDomain.com from Let’s Encrypt …
404 Not Found
… 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/myDomain/public_html/.well-known/acme-challenge/Rrn05Lgbli6nKn-1rYa6Zq9hBJMkVGx8KMK5fqQLnqo, but couldn’t download http://myDomain.com/.well-known/acme-challenge/Rrn05Lgbli6nKn-1rYa6Zq9hBJMkVGx8KMK5fqQLnqo: Error:
Url: http://myDomain.com/.well-known/acme-challenge/Rrn05Lgbli6nKn-1rYa6Zq9hBJMkVGx8KMK5fqQLnqo
Data: None
Response Code: 404
Response:Not Found
The requested URL was not found on this server.
If I browse to http://myDomain.com/.well-known/acme-challenge/Rrn05Lgbli6nKn-1rYa6Zq9hBJMkVGx8KMK5fqQLnqo there is nothing there.
I did set Yes for Redirect HTTP to HTTPS Server Configfuration >> Website Options. Setting it back to No - still got the same error.
I created the file manually and the cert request succeeded. But I don’t want to be creating this file manually for the other Virtual Servers.
Anyone any thoughts\suggestions?
Thanks in advance
Dibs