{{define "title"}} - PKI: {{.MountName}}{{end}} {{define "content"}} {{if .Error}}
{{.Error}}
{{end}}
Root CA
{{if .HasRoot}}
Common Name{{.RootCN}}
Organization{{.RootOrg}}
Valid From{{.RootNotBefore}}
Valid Until {{.RootNotAfter}} {{if .RootExpired}} Expired{{end}}

Download Root CA (PEM)

{{else}}

No root CA configured.

{{end}}
{{if .IsAdmin}} {{if or (not .HasRoot) .RootExpired}}
Import Root CA

{{if .RootExpired}}The current root CA has expired. Import a new one to continue issuing certificates.{{else}}No root CA is present. Import one to get started.{{end}}

{{csrfField}}
Or paste PEM directly
{{end}} {{end}}
Issuers
{{if .Issuers}}
{{range .Issuers}} {{end}}
Name Actions
{{.}} Download Cert (PEM)
{{else}}

No issuers configured.

{{end}}
{{if and .HasRoot .Issuers}}
Issue Certificate
{{csrfField}}
Subject Alternative Names
Key Usages
{{end}} {{if and .HasRoot .Issuers}}
Sign CSR
{{if .SignedCert}}

CSR signed successfully. Serial: {{.SignedCert.Serial}} — Expires: {{.SignedCert.ExpiresAt}}

{{else}}
{{csrfField}}
{{end}}
{{end}} {{if .IsAdmin}} {{if .HasRoot}}
Create Issuer
{{if .IssuerError}}
{{.IssuerError}}
{{end}}
{{csrfField}}
Advanced options
{{end}} {{end}} {{end}}