Skip to main content

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​

InputTypeRequiredDefaultWhat it is
NameStringNoKey owner name (name, e-mail or both).
EmailStringNoKey owner email address (name, e-mail or both).
PassphraseCredentialNoPassphrase that protects the private key; strongly recommended.
CommentStringNoOptional comment stored in the user id.
AlgorithmStringNoed25519Key type: ed25519 (modern, small) or RSA for older systems.
ExpiresStringNo2yLifetime, e.g. 1y, 6m, 90d, a date like 2028-12-31, or never.
Public key fileFileNoWhere to save the armored public key (.asc) to share with partners.
Private key fileFileNoWhere to save the armored private key (.asc) as a backup; keep it secret.
Gnupg homeFileNoSeparate key folder for this agent; the runner user's keyring when empty (GnuPG's, or the built-in one when GnuPG is not installed).
OverwriteBooleanNotrueReplace key files that are already there; when off, the step fails before any key is made.

Outputs​

OutputTypeWhat it is
fingerprintStringFingerprint of the new key.
user_idStringUser id stored in the key, e.g. Finance Agent <agent@example.com>.
public_key_fileFileExported public key, or empty.
private_key_fileFileExported private key, or empty.