Skip to content

Commit ac31926

Browse files
committed
#502 Try wildcard subdomain
1 parent 4e7a7a6 commit ac31926

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
@@ -99,8 +99,10 @@ pub fn request_cert(config: &crate::config::Config) -> Result<(), Error> {
9999
tracing::info!("Requesting Let's Encrypt account with {}", email);
100100
let acc = dir.account(&email)?;
101101

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

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

0 commit comments

Comments
 (0)