{{define "content"}}
{{with .Data}} {{$e := .Errors}}{{$f := .Form}}

Serving now

{{if .Has}}
Certificate for
{{.Cert.Subject}}
Issued by
{{.Cert.Issuer}}{{if .Cert.SelfSigned}} self-signed: browsers warn{{end}}
Valid until
{{.Cert.NotAfter.Format "2006-01-02"}}
SHA-256
{{.Cert.Fingerprint}}
{{else}}

No certificate yet; the web UI creates a self-signed one when it starts.

{{end}}
Let's Encrypt
{{range $k := list "provider" "email"}}{{with index $e $k}}

{{$k}}: {{.}}

{{end}}{{end}}

The account must be able to change the DNS records of the names: Let's Encrypt is shown it by a TXT record, so no port needs to be open to the internet. Accounts are kept on the DNS providers page (cloudflare, desec, digitalocean, duckdns and hetzner work here).{{if not .Providers}} There is none yet.{{end}}

{{with index $e "domains"}}

{{.}}

{{end}}

A wildcard like *.home.example.org works. The names should lead to the router (see DNS) so the browser reaches it by name.

{{with index $e "agree"}}

{{.}}

{{end}}
Issuing and renewal log{{if .Failed}} (the last run failed){{end}} {{if .Status}}

{{.Status}}

{{if .Log}}
{{.Log}}
{{end}} {{else}}

Nothing yet. After you save and apply, the router orders the certificate (a minute or two); renewals follow 30 days before it expires and need no restart.

{{end}} {{end}}
{{end}}