Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.05 KB

cosign_import-key-pair.md

File metadata and controls

45 lines (30 loc) · 1.05 KB

cosign import-key-pair

Imports a PEM-encoded RSA or EC private key.

Synopsis

Imports a PEM-encoded RSA or EC private key for signing.

cosign import-key-pair [flags]

Examples

  cosign import-key-pair  --key openssl.key

  # import PEM-encoded RSA or EC private key and write to import-cosign.key and import-cosign.pub files
  cosign import-key-pair --key <key path>

CAVEATS:
  This command interactively prompts for a password. You can use
  the COSIGN_PASSWORD environment variable to provide one.

Options

  -h, --help         help for import-key-pair
      --key string   import key pair to use for signing

Options inherited from parent commands

      --output-file string   log output to a file
  -t, --timeout duration     timeout for commands (default 3m0s)
  -d, --verbose              log debug output
  -y, --yes                  skip confirmation prompts for non-destructive operations

SEE ALSO

  • cosign - A tool for Container Signing, Verification and Storage in an OCI registry.