omnipackage gpg
Generate and convert GPG signing keys. See Signing packages for the broader workflow (export from your existing keyring, passphrase requirements, etc.).
gpg generate
Generate a new keypair and print the private key to stdout. The public key is derivable from it on demand, so OmniPackage doesn't need both.
| Flag | Default | Description |
|---|---|---|
--name <name> |
— (required) | Key owner name (real name) |
--email <email> |
— (required) | Key owner email |
--format <pem|base64> |
pem |
pem is multi-line ASCII armor; base64 is the same content base64-encoded into one line, suitable for .env and CI secrets |
The generated key is RSA 4096-bit, no expiration, no passphrase (OmniPackage cannot use a passphrased key). Generation runs in an isolated GNUPGHOME — your real ~/.gnupg is never touched.
# Typical: stash directly into .env
echo "GPG_KEY=$(omnipackage gpg generate --name 'Your Name' --email you@example.com --format base64)" >> .env
gpg convert
Convert between pem and base64 encodings of the same key.
| Flag | Default | Description |
|---|---|---|
<input> |
stdin | Positional path to the input key file. Reads stdin if omitted |
--input-format <pem|base64> |
pem |
Format of the input |
--output-format <pem|base64> |
base64 |
Format of the output |
Always writes to stdout. The conversion is loss-free — decoding the base64 form yields exactly the original pem block.