Skip to content

Commit

Permalink
#502 Try wildcard subdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
joepio committed Sep 28, 2022
1 parent b2a584f commit b24c79f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/https.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,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
Expand Down

0 comments on commit b24c79f

Please sign in to comment.