Skip to content

Instantly share code, notes, and snippets.

@djg11
djg11 / gen_yubico_piv_csr.sh
Last active June 14, 2022 16:25
yubico-piv-tool does not create a CSR on certain flag combinations.
#!/bin/bash
VERBOSE="0"
SUBJECT="/CN=username/"
SUBJECT_YKMAN="username"
PIN="123456"
PUB_9A="publickey-s9a.pem"
PUB_9C="publickey-s9c.pem"
PUB_9D="publickey-s9d.pem"