OSH

Key file setup

Use a key file as the OSH - CA key: create it from OSH - CA or bring your own Ed25519 key, keep it readable only by you, and trust it on your servers. Quick for a first test; prefer YubiKey or AWS KMS for a CA people rely on.

Before you start

1. Before you start

A key file is software. Anyone who can read the file can copy the key and sign certificates as your CA, from any machine. Use it to try OSH out; move to YubiKey or AWS KMS before the CA signs for servers you care about.

The CA signs with an Ed25519 private key stored in a file on the computer that runs OSH - CA. It needs no extra hardware and no account, and the CA starts without a PIN.

OSH - CA Settings, CA Key: the Key Source menu open, each source with its own icon: YubiKey (PIV) under Hardware; AWS KMS and PKCS#11 / AWS CloudHSM, both tagged Cloud HSM, under Cloud; and File tagged Software under Software, selected.

Create a key in OSH - CA

2. Create a key in OSH - CA

Open OSH - CA, go to Settings → CA Key, choose File as Key Source and press Create new key…. Pick where to save the file. OSH - CA creates an Ed25519 key readable only by you, never overwrites an existing file, and restarts the CA with the new key.

The status line under the path says Loaded ed25519 · <fingerprint> once the CA uses the key.

OSH - CA Settings, CA Key: Key Source set to File, the key file path, a Loaded ed25519 status, and the Choose file…, Create new key… and Export Public Key buttons.

Or use a key you already have

3. Or use a key you already have

Press Choose file… and pick an Ed25519 private key in PEM format, not encrypted: the CA cannot ask for a passphrase. OSH - CA shows the key type and fingerprint and asks before it switches.

openssl genpkey -algorithm ed25519 -out ca_key.pem && chmod 600 ca_key.pem

Creates a suitable key if you prefer to make it yourself.

If other users can read the file, OSH - CA still loads it but warns you and shows the chmod 600 command to run.

Trust the CA on your servers

4. Trust the CA on your servers step by step

In OSH - CA press Export Public Key, then Copy, and pass that text to the install script on every server, as described in Trust the CA. Do this again whenever you create or choose another key.

The CA Public Key (base64) dialog in OSH - CA, showing the public key and a Copy button.

Keep the file safe

5. Keep the file safe

Back the file up somewhere only you can read. Losing it means creating a new key and trusting it on every server again.

Never commit it to git or share it in chat. If a copy may have leaked, create a new key, trust it on your servers and remove the old one from them.

When you move to a YubiKey or AWS KMS, choose it as Key Source; OSH - CA keeps the file where it is, and it stops signing with it.

© 2026 Open layer technologies L.L.C S.O.C · v0.1.0
Need help? ad@openlay.com