2023-08-09 16:01:20 +02:00
|
|
|
# age-keygen
|
|
|
|
|
|
|
|
> Generate `age` key pairs.
|
2024-06-03 17:21:58 -03:00
|
|
|
> See also: `age` for encrypting/decrypting files.
|
2023-08-09 16:01:20 +02:00
|
|
|
> More information: <https://manned.org/age-keygen>.
|
|
|
|
|
2023-12-03 19:59:57 +07:00
|
|
|
- Generate a key pair, save it to an unencrypted file, and print the public key to `stdout`:
|
2023-08-09 16:01:20 +02:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`age-keygen {{[-o|--output]}} {{path/to/file}}`
|
2023-08-09 16:01:20 +02:00
|
|
|
|
2024-02-09 11:34:08 -03:00
|
|
|
- Convert an identit[y] to a recipient and print the public key to `stdout`:
|
2023-08-09 16:01:20 +02:00
|
|
|
|
|
|
|
`age-keygen -y {{path/to/file}}`
|