Let's Encrypt sub domains (ftp / mail / smtp)

2 posts / 0 new
Last post
#1 Mon, 02/12/2018 - 03:25
MrMoronIV

Let's Encrypt sub domains (ftp / mail / smtp)

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?

Mon, 02/12/2018 - 05:06
MrMoronIV

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

Topic locked