🟣import

Import a private key from file. Write a private key to one of the PIV slots on the YubiKey.

ykman piv keys import OPTIONS SLOT PRIVATE-KEY

OptionsDescription

-h, --help

Show this message and exit.

-m, --management-key TEXT

The management key.

--pin-policy [DEFAULT|NEVER ONCE|ALWAYS]

PIN policy for slot.

-p, --password TEXT

Password used to decrypt the private key.

-P, --pin TEXT

PIN code.

--touch-policy [DEFAULT| NEVER|ALWAYS|CACHED]

Touch policy for slot.

ArgumentsDescription

PRIVATE-KEY

File containing the private key. Use '-' to use stdin.

SLOT

PIV slot of the private key.

HELP

Usage: ykman.exe piv keys import [OPTIONS] SLOT PRIVATE-KEY

  Import a private key from file.

  Write a private key to one of the PIV slots on the YubiKey.

  SLOT        PIV slot of the private key.
  PRIVATE-KEY File containing the private key. Use '-' to use stdin.

Options:
  -P, --pin TEXT                  PIN code.
  -m, --management-key TEXT       The management key.
  --pin-policy [DEFAULT|NEVER|ONCE|ALWAYS]
                                  PIN policy for slot.
  --touch-policy [DEFAULT|NEVER|ALWAYS|CACHED]
                                  Touch policy for slot.
  -p, --password TEXT             Password used to decrypt the private key.
  -h, --help                      Show this message and exit.

EXAMPLE

Last updated