github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/cli/docs/reference/commandline/trust_key_load.md (about) 1 --- 2 title: "key load" 3 description: "The key load command description and usage" 4 keywords: "key, notary, trust" 5 --- 6 7 # trust key load 8 9 ```markdown 10 Usage: docker trust key load [OPTIONS] KEYFILE 11 12 Load a private key file for signing 13 14 Options: 15 --help Print usage 16 --name string Name for the loaded key (default "signer") 17 ``` 18 19 ## Description 20 21 `docker trust key load` adds private keys to the local docker trust keystore. 22 23 To add a signer to a repository use `docker trust signer add`. 24 25 ## Examples 26 27 ### Load a single private key 28 29 For a private key `alice.pem` with permissions `-rw-------` 30 31 ```bash 32 $ docker trust key load alice.pem 33 34 Loading key from "alice.pem"... 35 Enter passphrase for new signer key with ID f8097df: 36 Repeat passphrase for new signer key with ID f8097df: 37 Successfully imported key from alice.pem 38 ``` 39 40 To specify a name use the `--name` flag: 41 42 ```bash 43 $ docker trust key load --name alice-key alice.pem 44 45 Loading key from "alice.pem"... 46 Enter passphrase for new alice-key key with ID f8097df: 47 Repeat passphrase for new alice-key key with ID f8097df: 48 Successfully imported key from alice.pem 49 ```