🟣import

Import an X.509 certificate. Write a certificate to one of the PIV slots on the YubiKey.

ykman piv certificates import OPTIONS SLOT CERTIFICATE

Options
Description

-h, --help

Show this message and exit.

-m, --management-key TEXT

The management key.

-p, --password TEXT

A password may be needed to decrypt the data.

-P, --pin TEXT

PIN code.

-v, --verify

Verify that the certificate matches the private key in the slot.

Arguments
Description

SLOT

PIV slot of the certificate.

CERTIFICATE

File containing the certificate. Use '-' to use stdin.

HELP

Usage: ykman.exe piv certificates import [OPTIONS] SLOT CERTIFICATE

  Import an X.509 certificate.

  Write a certificate to one of the PIV slots on the YubiKey.

  SLOT            PIV slot of the certificate.
  CERTIFICATE     File containing the certificate. Use '-' to use stdin.

Options:
  -m, --management-key TEXT  The management key.
  -P, --pin TEXT             PIN code.
  -p, --password TEXT        A password may be needed to decrypt the data.
  -v, --verify               Verify that the certificate matches the private key in the slot.
  -h, --help                 Show this message and exit.

EXAMPLE

Last updated