How CrushMFT keeps certificates#
A certificate that comes in through Certificates (dropped files, Let's Encrypt, a request answered by a certificate company, a self-signed one) is kept by CrushMFT: nobody has to know a path or a password for it again.
Where#
| What | Kept as |
|---|---|
| a certificate | one PKCS#12 file of its own in keystores/ beside the preferences (BCFKS in FIPS mode), with one entry: the private key and its chain. Its password is 32 characters that CrushMFT made, stored sealed in the preferences |
| a request out | the new private key in keystores/pending/ until the certificate company's answer comes back |
| chain certificates | keystores/chain.p12: the middle and root certificates CrushMFT completes chains with. Certificates are public; its password is not a secret |
| Let's Encrypt accounts | keystores/acme-accounts.p12, password sealed; never a loose key file |
| runs of Let's Encrypt | keystores/acme/runs.json, the last 20 of each certificate |
| versions | keystores/versions/: the last three versions each port served |
| backups | backup/keystores/: the file before every change made from the page |
Passwords are sealed with the server's own key when one is set up (Encryption, Stored Secrets). Servers of a cluster that share settings need the same key.
Key store files you manage yourself#
A file you keep managing (certbot, your IT team, a script) stays where it is: CrushMFT keeps its password, watches it, and puts a new version in use when it changes on disk. See Key store files.
Safe changes#
- Everything is checked before it is used: the file opens, its private key belongs to its certificate, it has not ended.
- A file that stops opening never takes a port down: the port keeps what it had, and at the next start it serves the last version that worked (a red notice says so). Only when there is no such version does it serve the built-in certificate, with a notice and an alert.
- A change of what a port serves waits for Keep, and goes back by itself without it.
- The last three versions can be put back from a certificate's Versions tab.
In a cluster and with DMZs#
The list, the settings and the files go to every server of the cluster, each of which checks a file with its own copy of the passwords before it writes it. A DMZ keeps nothing: its server sends the files its ports name into its memory and swaps them in without a restart.