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 Oct 11, 2022
1 parent ee857d2 commit ee73674
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 ee73674

Please sign in to comment.