...

Text file src/github.com/sigstore/cosign/v2/doc/cosign_import-key-pair.md

Documentation: github.com/sigstore/cosign/v2/doc

     1## cosign import-key-pair
     2
     3Imports a PEM-encoded RSA or EC private key.
     4
     5### Synopsis
     6
     7Imports a PEM-encoded RSA or EC private key for signing.
     8
     9```
    10cosign import-key-pair [flags]
    11```
    12
    13### Examples
    14
    15```
    16  cosign import-key-pair  --key openssl.key --output-key-prefix my-key
    17
    18  # import PEM-encoded RSA or EC private key and write to import-cosign.key and import-cosign.pub files
    19  cosign import-key-pair --key <key path>
    20
    21  # import PEM-encoded RSA or EC private key and write to my-key.key and my-key.pub files
    22  cosign import-key-pair --key <key path> --output-key-prefix my-key
    23
    24CAVEATS:
    25  This command interactively prompts for a password. You can use
    26  the COSIGN_PASSWORD environment variable to provide one.
    27```
    28
    29### Options
    30
    31```
    32  -h, --help                       help for import-key-pair
    33  -k, --key string                 import key pair to use for signing
    34  -o, --output-key-prefix string   name used for outputted key pairs (default "import-cosign")
    35  -y, --yes                        skip confirmation prompts for overwriting existing key
    36```
    37
    38### Options inherited from parent commands
    39
    40```
    41      --output-file string   log output to a file
    42  -t, --timeout duration     timeout for commands (default 3m0s)
    43  -d, --verbose              log debug output
    44```
    45
    46### SEE ALSO
    47
    48* [cosign](cosign.md)	 - A tool for Container Signing, Verification and Storage in an OCI registry.
    49

View as plain text