zvault/docs/man/zvault-addkey.1.md

51 lines
1.1 KiB
Markdown
Raw Normal View History

zvault-addkey(1) -- Add a key pair to the repository
====================================================
## SYNOPSIS
2017-05-11 07:36:44 +00:00
`zvault addkey [OPTIONS] [FILE] <REPO>`
## DESCRIPTION
This subcommand adds a new key pair to the repository `REPO`.
If `FILE` is given, the key pair is read from the file and added to the
repository.
If `--generate` is set, a new key pair is generated, printed to console and
2017-05-11 07:36:44 +00:00
added to the repository. If `--password` is also set, the key pair will be
derived from the given password instead of creating a random one.
If `--default` is set, encryption will be enabled (if not already) and the new
key will be set as default encryption key.
## OPTIONS
* `-g`, `--generate`:
Generate a new key pair
* `-d`, `--default`:
Set the key pair as default
2017-05-08 13:11:07 +00:00
* `-p`, `--password <PASSWORD>`:
Derive the key pair from the given password instead of randomly creating it.
2017-05-11 07:36:44 +00:00
This setting requires that `--generate` is set too.
2017-05-08 13:11:07 +00:00
* `-h`, `--help`:
Prints help information
## COPYRIGHT
Copyright (C) 2017 Dennis Schwerdel
This software is licensed under GPL-3 or newer (see LICENSE.md)