export
Export a public key corresponding to a stored private key. This command uses several different mechanisms for exporting the public key corresponding to a stored private key.
ykman piv keys export OPTIONS SLOT PUBLIC-KEY
Options
Description
-h, --help
Show this message and exit.
-F, --format [PEM|DER]
Encoding format.
[default: PEM
]
-P, --pin TEXT
PIN code (used for --verify
).
-v, --verify
Verify that the public key matches the private key in the slot.
Arguments
Description
PUBLIC-KEY
File containing the generated public key.
Use -
to use stdout
.
SLOT
PIV slot of the private key.
HELP
EXAMPLE
Last updated
Was this helpful?