These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Let's Encrypt sub domains (ftp / mail / smtp) on the new forum.
How do you request a let's encrypt certificate for common subdomains that do not resolve to an actual website?
When I put the subdomains in the box " Domain names listed here" like so:
example.com
www.example.com
ftp.example.com
mail.example.com
smtp.wexample.com
it says: .. request failed : Web-based validation failed : Failed to request certificate :
ftp.example.com challenge did not pass:
Invalid response from http://ftp.example.com/.well-known/acme-challenge/L8y8eGEETErS5s74RHH08RfdANe2ivxMNJGH71yQRoc: "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p"
which makes sense, but how does one request a let's encrypt in Virtualmin for these sub domains that are not used for a website?
Well, adding
ServerAlias ftp.${DOM}
to the Apache server template did the trick.Please make this work out of the box :) This step shouldn't be necessary