71 lines
4.7 KiB
Markdown
71 lines
4.7 KiB
Markdown
# Certificates
|
|
|
|
The server's HTTPS certificate and its CA: a root CA and issuing CAs that sign the certificates.
|
|
The root is created by the server, an offline CA, or the root of a Simple CA service whose issuing
|
|
CA signs the server's issuing CAs; that is chosen at setup and fixed once the root exists.
|
|
|
|
## Above the tabs
|
|
|
|
Issue and Settings are on every tab but Server.
|
|
|
|
- **Issue:** a certificate from a CSR, saved with its chain, or with a key the server makes, saved
|
|
as a PFX file protected by a password; the server keeps no copy of the key.
|
|
- **Settings:** the names of the P2S and S2S CAs while they do not exist yet, the lifetimes, key
|
|
type, CRL validity, publishing endpoints and, with a Simple CA root, the URL of the service.
|
|
- **Warnings:** what needs attention, such as a CRL about to expire.
|
|
|
|
## Tabs
|
|
|
|
- **Server:** the first tab, shown also while the PKI cannot be read: HTTPS and the name it is
|
|
for, with a chip while the server's certificate has a source other than ACME, and a settings
|
|
button; the server's certificate, when it is not ACME's, with its issuer and expiry; the ACME
|
|
CA, with a chip while it is Let's Encrypt's staging environment, and a settings button (see
|
|
Server HTTPS below); and Caddy, which serves every HTTP and HTTPS port of the server, with its
|
|
version and the state of `caddy.service`.
|
|
- **Root:** the root CA's source, state, subject, expiry and CRL, and with Simple CA its issuing
|
|
CA that signs the server's and the expiry of the token. **Download root CA** gives its
|
|
certificate. An offline root takes its certificate with **Import root certificate**, before the
|
|
issuing CAs, and a CRL signed offline with **Upload CRL**; a Simple CA root takes the setup code
|
|
of a new token with **Enter setup code**. Below, the certificates of the issuing CAs.
|
|
- **Templates:** key, lifetime, subject, usages, alternative names, certificate policies and the
|
|
CAs that issue each template. **Add template**, **Edit**, **Remove** for the server's own and
|
|
**Reset** for a changed built-in one.
|
|
- **Extended key usages:** the usages templates may give, with their OIDs; custom ones are added
|
|
with a name and an OID.
|
|
- **Issuing CAs:** the built-in CAs, P2S for the VPN users, S2S for site-to-site connections and
|
|
the Servers Issuing CA `servers` for mTLS certificates and the server's HTTPS certificate, and the
|
|
custom CAs, each with its templates and an optional ACME server. P2S is off while the VPN is,
|
|
and S2S while the router is, until they are switched on. An active CA gives its CA
|
|
bundle; a pending CA, waiting for the offline root, gives its CSR and takes the certificate the
|
|
root signed, and one waiting for Simple CA is signed once the server reaches it. **Add issuing
|
|
CA**, **Edit** and **Remove** are for the custom CAs; a removed CA is retired and its
|
|
certificate revoked. The common name of a CA is fixed once the CA has its certificate or CSR:
|
|
a CA with another name is a new CA, added under a new name. Below, the certificates of all of
|
|
them, filtered by CA, each with its kind, template, names, expiry and state; one of another
|
|
system or of the server is revoked after a confirmation with a reason.
|
|
|
|
## Server HTTPS
|
|
|
|
The settings button of the HTTPS row sets the **certificate of the server**: ACME; self-signed,
|
|
with its validity in days; the Servers Issuing CA of the server's PKI; or another CA. Until the
|
|
chosen certificate is available, the server serves a self-signed one and warns.
|
|
|
|
The source is self-signed unless the configuration names another; ACME is used only when it is
|
|
chosen. The first setup of a new installation chooses the Servers Issuing CA when the root CA and
|
|
that CA are available, as with a root the server creates, else self-signed.
|
|
While HTTPS is on, the Manager's plain HTTP address redirects to its HTTPS address, unless the
|
|
installer's `https_disable_auto_redirect` or `https.disable_auto_redirect` says otherwise; the
|
|
status page never redirects.
|
|
|
|
The settings button of the ACME CA row sets the ACME CA of the server's certificate with ACME, and
|
|
of the web sites with TLS ACME: Let's Encrypt, with **Staging environment** for routers rebuilt
|
|
often, whose certificates no browser trusts; ZeroSSL, with an optional API key; or a custom ACME
|
|
directory URL, such as HashiCorp Vault, Caddy or Simple CA, with optional EAB credentials. The CA
|
|
of a custom directory's HTTPS certificate is in the server's trust store.
|
|
|
|
With another CA, the HTTPS certificate row has **Generate CSR**, which saves a CSR for the
|
|
server's name, **Import certificate**, which takes the certificate signed for it followed by its
|
|
chain, and **Import PFX**, which takes a PFX file and its password. Saving and importing run the
|
|
server's setup again, which applies the change. The other HTTPS settings are changed on the
|
|
server with `linux-manager-config-edit`.
|