🟣generate
Generate an asymmetric key pair. The private key is generated on the YubiKey, and written to one of the slots.
ykman piv keys generate OPTIONS SLOT PUBLIC-KEY
Options | Description |
---|---|
-h, --help | Show this message and exit. |
-a, --algorithm [RSA1024 RSA2048|ECCP256|ECCP384] | Algorithm to use in key generation.
[default: |
-F, --format [PEM|DER] | Encoding format.
[default: |
-m, --management-key TEXT | The management key. |
-P, --pin TEXT | PIN code. |
-s, --subject TEXT | Subject for certificate, an RFC 4514 string. [required]. |
| PIN policy for slot. |
| Touch policy for slot. |
Arguments | Description |
---|---|
PUBLIC-KEY | File containing the generated public key.
Use |
SLOT | PIV slot of the private key. |
HELP
EXAMPLE
Last updated