HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

age-keygen — Generate `age` key pairs. See also: `age`. More information: <https://manned.org/age-keygen>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandseekeycliage-keygenagepairsgenerate

Problem

How to use the age-keygen command: Generate age key pairs. See also: age. More information: <https://manned.org/age-keygen>.

Solution

age-keygen — Generate age key pairs. See also: age. More information: <https://manned.org/age-keygen>.

Generate a key pair, save it to an unencrypted file, and print the public key to stdout:
age-keygen {{[-o|--output]}} {{path/to/file}}


Convert an identit[y] to a recipient and print the public key to stdout:
age-keygen -y {{path/to/file}}

Code Snippets

Generate a key pair, save it to an unencrypted file, and print the public key to `stdout`

age-keygen {{[-o|--output]}} {{path/to/file}}

Convert an identit[y] to a recipient and print the public key to `stdout`

age-keygen -y {{path/to/file}}

Context

tldr-pages: common/age-keygen

Revisions (0)

No revisions yet.