diff --git a/server/src/https.rs b/server/src/https.rs index 52e755398..d441e5913 100644 --- a/server/src/https.rs +++ b/server/src/https.rs @@ -98,8 +98,10 @@ pub fn request_cert(config: &crate::config::Config) -> Result<(), Error> { tracing::info!("Requesting Let's Encrypt account with {}", email); let acc = dir.account(&email)?; + // Allow all subdomains for this same certificate. Not sure if this works! + let wildcard_domain = format!("*.{}", &config.opts.domain); // Order a new TLS certificate for a domain. - let mut ord_new = acc.new_order(&config.opts.domain, &[])?; + let mut ord_new = acc.new_order(&wildcard_domain, &[])?; // If the ownership of the domain(s) have already been // authorized in a previous order, you might be able to