2017-04-13 08:36:06 +00:00
|
|
|
zvault-addkey(1) -- Add a key pair to the repository
|
|
|
|
====================================================
|
|
|
|
|
|
|
|
## SYNOPSIS
|
|
|
|
|
2017-05-11 07:36:44 +00:00
|
|
|
`zvault addkey [OPTIONS] [FILE] <REPO>`
|
2017-04-13 08:36:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
## 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.
|
2017-04-13 08:36:06 +00:00
|
|
|
|
|
|
|
If `--default` is set, encryption will be enabled (if not already) and the new
|
|
|
|
key will be set as default encryption key.
|
|
|
|
|
|
|
|
|
|
|
|
## OPTIONS
|
|
|
|
|
2017-05-17 06:58:54 +00:00
|
|
|
* `-g`, `--generate`:
|
2017-04-13 08:36:06 +00:00
|
|
|
|
2017-05-17 06:58:54 +00:00
|
|
|
Generate a new key pair
|
2017-04-13 08:36:06 +00:00
|
|
|
|
|
|
|
|
2017-05-17 06:58:54 +00:00
|
|
|
* `-d`, `--default`:
|
2017-04-13 08:36:06 +00:00
|
|
|
|
2017-05-17 06:58:54 +00:00
|
|
|
Set the key pair as default
|
2017-04-13 08:36:06 +00:00
|
|
|
|
|
|
|
|
2017-05-17 06:58:54 +00:00
|
|
|
* `-p`, `--password <PASSWORD>`:
|
2017-05-08 13:11:07 +00:00
|
|
|
|
2017-05-17 06:58:54 +00:00
|
|
|
Derive the key pair from the given password instead of randomly creating it.
|
|
|
|
This setting requires that `--generate` is set too.
|
2017-05-11 07:36:44 +00:00
|
|
|
|
2017-05-08 13:11:07 +00:00
|
|
|
|
2017-05-17 06:58:54 +00:00
|
|
|
* `-q`, `--quiet`:
|
|
|
|
|
|
|
|
Print less information
|
|
|
|
|
|
|
|
|
|
|
|
* `-v`, `--verbose`:
|
|
|
|
|
|
|
|
Print more information
|
|
|
|
|
|
|
|
|
|
|
|
* `-h`, `--help`:
|
|
|
|
|
|
|
|
Prints help information
|
|
|
|
|
|
|
|
|
|
|
|
* `-V`, `--version`:
|
|
|
|
|
|
|
|
Prints version information
|
2017-04-13 08:36:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## COPYRIGHT
|
|
|
|
|
|
|
|
Copyright (C) 2017 Dennis Schwerdel
|
|
|
|
This software is licensed under GPL-3 or newer (see LICENSE.md)
|