1
0
mirror of https://github.com/docker/cli.git synced 2025-04-20 06:27:49 +03:00
cli/docs/reference/commandline/trust_key_load.md
David Karlsson 6fd4cff1f7 docs: minor editorial improvements, typo fixes
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-12-19 17:15:38 +01:00

1.1 KiB

trust key load

Load a private key file for signing

Options

Name Type Default Description
--name string signer Name for the loaded key

Description

docker trust key load adds private keys to the local Docker trust keystore.

To add a signer to a repository use docker trust signer add.

Examples

Load a single private key

For a private key alice.pem with permissions -rw-------

$ docker trust key load alice.pem

Loading key from "alice.pem"...
Enter passphrase for new signer key with ID f8097df:
Repeat passphrase for new signer key with ID f8097df:
Successfully imported key from alice.pem

To specify a name use the --name flag:

$ docker trust key load --name alice-key alice.pem

Loading key from "alice.pem"...
Enter passphrase for new alice-key key with ID f8097df:
Repeat passphrase for new alice-key key with ID f8097df:
Successfully imported key from alice.pem