Files
docker-cli/components/cli/docs/reference/commandline/trust_key_generate.md
Riyaz Faizullabhoy 506e33cdf2 trust: move signer and key commands down one level
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
Upstream-commit: 532d223db4
Component: cli
2017-10-30 16:53:54 +01:00

1.5 KiB

title, description, keywords
title description keywords
key generate The key generate command description and usage Key, notary, trust

trust key generate

Usage:  docker trust key generate NAME

Generate and load a signing key-pair

Description

docker trust key generate generates a key-pair to be used with signing, and loads the private key into the local docker trust keystore.

docker trust key generate is currently experimental.

Examples

Generate a key-pair

$ docker trust key generate alice

Generating key for alice...
Enter passphrase for new alice key with ID 17acf3c:
Repeat passphrase for new alice key with ID 17acf3c:
Successfully generated and loaded private key. Corresponding public key available: alice.pub
$ ls
alice.pub

The private signing key is encrypted by the passphrase and loaded into the docker trust keystore. All passphrase requests to sign with the key will be referred to by the provided NAME.

The public key component alice.pub will be available in the current working directory, and can be used directly by docker trust signer add.