Yubikey
YubicoBitwardenGPG ToolsDonate Coffee
PIV
PIV
  • Introduction
  • Getting Started
    • ⭕1. Interface
    • ⭕2. PINs
      • 🟣About
      • 🟣Defaults
      • 🟣Change
    • ⭕3. CLI
    • ⭕4. Certificates
    • ⭕5. Reset
  • SLOTS
    • ⭕9A
      • 🟣Certreq
      • 🟣OpenSSL
    • ⭕9C
    • ⭕9D
    • ⭕9E
  • Generate
    • ⭕File Extensions
    • ⭕With OpenSSL
      • 🟣distinguished_name
      • 🟣keyUsage
      • 🟣extendedKeyUsage
    • ⭕With XCA
  • commands
    • ⭕info
    • ⭕reset
    • ⭕access
      • 🟣change-management-key
      • 🟣change-pin
      • 🟣change-puk
      • 🟣set-retries
      • 🟣unblock-pin
    • ⭕certificates
      • 🟣delete
      • 🟣export
      • 🟣generate
      • 🟣import
      • 🟣request
    • ⭕keys
      • 🟣attest
      • 🟣export
      • 🟣generate
      • 🟣import
    • ⭕objects
      • 🟣export
      • 🟣generate
      • 🟣import
Powered by GitBook
On this page
  • ykman piv certificates import OPTIONS SLOT CERTIFICATE
  • HELP
  • EXAMPLE

Was this helpful?

  1. commands
  2. certificates

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

PreviousgenerateNextrequest

Last updated 2 years ago

Was this helpful?

⭕
🟣