Skip to content

SSH keys and certificates

SecTools → Keys & certificates…. Two tabs: SSH key and Certificate.

SSH key tab

Generate new creates a key pair like ssh-keygen:

Field Default What it does
Key type Ed25519 (recommended) Ed25519; ECDSA P-256, P-384, P-521; RSA 4096, 3072; legacy: RSA 2048 (legacy), RSA 1024 (insecure), DSA 1024 (insecure).
Comment Stored in the public key, usually user@machine.
Save as ~/.ssh/id_<type> Private key; .pub next to it. An existing file is never overwritten.
Passphrase / Confirm empty = no passphrase Encrypts the private key (AES-256 + bcrypt KDF, as ssh-keygen).
Save passphrase in the macOS Keychain off Saved in the vault as key-passphrase:<path>; SSH logins in KryoDesk then unlock the key without asking.

Open existing reads an OpenSSH, PEM (PKCS#1 / PKCS#8, also encrypted) or PuTTY .ppk key; the passphrase is used only to read it.

The result shows the SHA-256 fingerprint and randomart. Save private key as… exports with an optional new passphrase:

Format For
PuTTY .ppk v3 PuTTY 0.75+, current WinSCP; Argon2id when encrypted
PuTTY .ppk v2 (legacy) older PuTTY and WinSCP
OpenSSH (id_rsa, id_ed25519…) OpenSSH
PEM PKCS#8 libraries and appliances
PEM traditional (legacy) PKCS#1 / SEC1, old software
Public key (OpenSSH), Public key (SSH2 / RFC 4716) authorized_keys, commercial SSH servers

Two modes. Both need an external tool: mkcert, or OpenSSL 3 (macOS: Homebrew openssl@3; the LibreSSL /usr/bin/openssl of macOS is not used. Windows: winget packages in External tools). A missing tool shows brew install … (Windows: winget install …) with Install.

mkcert mode

Development certificates trusted by this Mac’s browsers through mkcert’s local CA.

Control What it does
Status mkcert CA is trusted. / mkcert CA exists but is not trusted yet. / No mkcert CA yet., version and CA folder.
Show CA Shows rootCA.pem in Finder (to install on a phone or another computer). Anyone with rootCA-key.pem from that folder can create certificates your computer trusts.
Install CA Runs mkcert -install in a terminal tab; it asks for your password.
Domains Host names and IPs, one per row.
Usage Web server, Server + client (-client; mkcert has no client-only mode).
ECDSA P-256 instead of RSA 2048 -ecdsa.

Own CA / self-signed mode with a root and an intermediate CA

CA store lists your CAs from ~/Library/Application Support/pl.kryodesk/ca/<name>/:

Control What it does
+ Root CA New root CA: Name (in KryoDesk), Common name (shown as the issuer), Organization, Valid (days) (usually 10 years for a root, 5 for an intermediate), Key.
N certs Certificates kept in the CA’s store; Export… decrypts the key and opens the export screen; delete removes it from the store (exported files stay).
Shield Trust in macOS: /usr/bin/security add-trusted-cert -r trustRoot -k ~/Library/Keychains/login.keychain-db ca.crt; macOS asks for your password. Once trusted, this Mac accepts any certificate signed by this CA or its intermediates, for any name. macOS only; on Windows import ca.crt yourself (certutil -user -addstore Root ca.crt).
+ New intermediate CA signed by this root. Intermediates get basicConstraints = critical, CA:TRUE, pathlen:0: they cannot sign further CAs.
Folder Shows ca.crt in Finder.
Trash Deletes the CA and the certificates with keys in its store.

A CA folder holds ca.crt, ca.key encrypted with a random password kept in the vault as ca-key:<name>, and parent for an intermediate. Issued certificates kept in the store are in issued/<serial>/ (cert.pem, key.pem encrypted with the CA’s password, meta.json).

Certificate fields:

Field Default What it does
Signed by Self-signed Self-signed (clients warn until you trust this exact certificate) or one of your CAs.
Domains localhost, 127.0.0.1, ::1 Subject alternative names; Add name adds a row.
Common name first domain Browsers check only the domains list.
Organization, Unit, Location (country, state / region, city) empty Optional subject fields.
Usage Web server Web server (serverAuth), Client (clientAuth, mTLS), Server + client.
Keep in the CA store (key encrypted) Only for a CA-signed certificate: keeps it for exporting again later.
Valid (days) 825 macOS and iOS reject server certificates valid longer than 825 days.
Key ECDSA P-256 (recommended) ECDSA P-384, RSA 2048, RSA 3072, RSA 4096.
Generate certificate Runs OpenSSL (below).

OpenSSL steps, each in the log: openssl genpkey, openssl req -new -sha256, openssl x509 -req -sha256 -CA … -set_serial … -extfile …. The CA key’s password goes through stdin (-passin stdin), never through arguments or environment.

The result shows subject, issuer, names, validity, serial, SHA-256 and SHA-1 (thumbprint) and the chain, and offers:

Button What it saves
Save .crt + .key (+ fullchain for a CA-signed one) <name>.crt, <name>.key (0600) and <name>-fullchain.crt (nginx ssl_certificate); never overwrites.
Copy PEM The certificate as PEM text.
.crt (PEM)… PEM: Linux, macOS, nginx, Apache.
.cer (DER)… Binary DER: Windows import, Java keytool, some appliances.
Full chain… Certificate + intermediates (nginx, HAProxy, Traefik).
CA chain… CA certificates including the root (Apache SSLCACertificateFile, clients that must trust the CA).
Save .key… Passphrase empty = unencrypted (web servers usually need that; nginx can use ssl_password_file); an option writes a traditional PKCS#1/SEC1 key for old Apache, old Java, appliances.
Save .ppk (v3)… / .ppk (v2)… The key for PuTTY: v3 for PuTTY 0.75+ and current WinSCP, v2 for PuTTY 0.52–0.74, older WinSCP and FileZilla.
Save .pfx… Password + Confirm; Legacy encryption (Windows compatible): 3DES/SHA-1 for old Windows, Server 2016 and old Java.

The private key stays in memory until it is saved; it is never shown.

Scroll or pinch to zoom · drag to move · double-click to zoom · Esc or click outside to close