Skip to content

Commit

Permalink
quickstart: for -existing-webserver, also tls key/cert placeholder fo…
Browse files Browse the repository at this point in the history
…r mail.$domain

unless mail.$domain is the mx hostname.

after question about which tls certs are needed from robbo5000 on matrix
  • Loading branch information
mjl- committed Dec 8, 2024
1 parent 2255ebc commit 5320ec1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quickstart.go
Original file line number Diff line number Diff line change
Expand Up @@ -744,13 +744,17 @@ many authentication failures).
hostbase := filepath.FromSlash("path/to/" + dnshostname.Name())
mtastsbase := filepath.FromSlash("path/to/mta-sts." + domain.Name())
autoconfigbase := filepath.FromSlash("path/to/autoconfig." + domain.Name())
mailbase := filepath.FromSlash("path/to/mail." + domain.Name())
public.TLS = &config.TLS{
KeyCerts: []config.KeyCert{
{CertFile: hostbase + "-chain.crt.pem", KeyFile: hostbase + ".key.pem"},
{CertFile: mtastsbase + "-chain.crt.pem", KeyFile: mtastsbase + ".key.pem"},
{CertFile: autoconfigbase + "-chain.crt.pem", KeyFile: autoconfigbase + ".key.pem"},
},
}
if mailbase != hostbase {
public.TLS.KeyCerts = append(public.TLS.KeyCerts, config.KeyCert{CertFile: mailbase + "-chain.crt.pem", KeyFile: mailbase + ".key.pem"})
}

fmt.Println(
`Placeholder paths to TLS certificates to be provided by the existing webserver
Expand Down

0 comments on commit 5320ec1

Please sign in to comment.