github.com/docker/docker-ce@v17.12.1-ce-rc2+incompatible/components/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  <!-- This file is maintained within the docker/cli Github
     8       repository at https://github.com/docker/cli/. Make all
     9       pull requests against that repo. If you see this file in
    10       another repository, consider it read-only there, as it will
    11       periodically be overwritten by the definitive file. Pull
    12       requests which include edits to this file in other repositories
    13       will be rejected.
    14  -->
    15  
    16  # trust key load
    17  
    18  ```markdown
    19  Usage:	docker trust key load [OPTIONS] KEYFILE
    20  
    21  Load a private key file for signing
    22  
    23  Options:
    24        --help          Print usage
    25        --name string   Name for the loaded key (default "signer")
    26  ```
    27  
    28  ## Description
    29  
    30  `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`.
    31  
    32  `docker trust key load` is currently experimental.
    33  
    34  ## Examples
    35  
    36  ### Load a single private key
    37  
    38  For a private key `alice.pem` with permissions `-rw-------`
    39  
    40  ```bash
    41  $ docker trust key load alice.pem
    42  
    43  Loading key from "alice.pem"...
    44  Enter passphrase for new signer key with ID f8097df: 
    45  Repeat passphrase for new signer key with ID f8097df: 
    46  Successfully imported key from alice.pem
    47  
    48  ```
    49  to specify a name use the `--name` flag
    50  
    51  ```bash
    52  $ docker trust key load --name alice-key alice.pem
    53  
    54  Loading key from "alice.pem"...
    55  Enter passphrase for new alice-key key with ID f8097df: 
    56  Repeat passphrase for new alice-key key with ID f8097df: 
    57  Successfully imported key from alice.pem
    58  
    59  ```