Create key pair
Generate a new OpenPGP key pair (signing key plus encryption subkey) and optionally export it to armored key files.
Command in the PGP toolkit · id ooa.pgp/create_keys · 10 inputs, 4 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Name | String | No | Key owner name (name, e-mail or both). | |
| String | No | Key owner email address (name, e-mail or both). | ||
| Passphrase | Credential | No | Passphrase that protects the private key; strongly recommended. | |
| Comment | String | No | Optional comment stored in the user id. | |
| Algorithm | String | No | ed25519 | Key type: ed25519 (modern, small) or RSA for older systems. |
| Expires | String | No | 2y | Lifetime, e.g. 1y, 6m, 90d, a date like 2028-12-31, or never. |
| Public key file | File | No | Where to save the armored public key (.asc) to share with partners. | |
| Private key file | File | No | Where to save the armored private key (.asc) as a backup; keep it secret. | |
| Gnupg home | File | No | Separate key folder for this agent; the runner user's keyring when empty (GnuPG's, or the built-in one when GnuPG is not installed). | |
| Overwrite | Boolean | No | true | Replace key files that are already there; when off, the step fails before any key is made. |
Outputs
| Output | Type | What it is |
|---|---|---|
| fingerprint | String | Fingerprint of the new key. |
| user_id | String | User id stored in the key, e.g. Finance Agent <agent@example.com>. |
| public_key_file | File | Exported public key, or empty. |
| private_key_file | File | Exported private key, or empty. |