I have been trying to fix my main servers system hostname SSL by requesting a letsencrypt SSL from Webmin > Webmin Configuration > SSL Encryption > Let’s Encrypt But it is failing for all the attempts and by choosing different options. I am not sure what I am missing and what needs to be done for this. This is the error:
Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator webroot, Installer None Obtaining a new certificate Performing the following challenges: http-01 challenge for srv.domain.com Using the webroot path /etc/webmin for all unmatched domains. Waiting for verification... Challenge failed for domain srv.domain.com http-01 challenge for srv.domain.com Cleaning up challenges Some challenges have failed. IMPORTANT NOTES: - The following errors were reported by the server: Domain: srv.domain.com Type: unauthorized Detail: Invalid response from http://srv.domain.com/.well-known/acme-challenge/0mkv8DJ9gCVdwrba2axwjWNI6m2bRVg2207PDE-K0qk [22.214.171.124]: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p" 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.
The A record for srv.domain.com is added and it points to the server IP address
I don’t want to go and add a virtual server from virtualmin. Because virtualmin is to create virtual servers and if I add a virtual server for the main system domain it might cause problems.
Here are my server details:
Webmin version: 1.954
Usermin version: 1.803
Virtualmin version: 6.11
Operating system: CentOS Linux 8.2.2004