Skip to content

Commit 556df0a

Browse files
committed
#502 Try wildcard subdomain
1 parent b4cb5d0 commit 556df0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/https.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,10 @@ pub fn request_cert(config: &crate::config::Config) -> Result<(), Error> {
9898
tracing::info!("Requesting Let's Encrypt account with {}", email);
9999
let acc = dir.account(&email)?;
100100

101+
// Allow all subdomains for this same certificate. Not sure if this works!
102+
let wildcard_domain = format!("*.{}", &config.opts.domain);
101103
// Order a new TLS certificate for a domain.
102-
let mut ord_new = acc.new_order(&config.opts.domain, &[])?;
104+
let mut ord_new = acc.new_order(&wildcard_domain, &[])?;
103105

104106
// If the ownership of the domain(s) have already been
105107
// authorized in a previous order, you might be able to

0 commit comments

Comments
 (0)