【发布时间】:2020-01-03 20:20:48
【问题描述】:
我正在尝试使用 opensssl 命令签署 CSR。 证书和信任根转到 yubikey 并且 yubikey 充当 HSM 权限。 每次我执行命令时,它都会询问 Yubikey Pin。 如何在命令行中传递 PIN 码,这样我就不必手动输入它,它可以完全脱壳。
openssl x509 -engine pkcs11 -req -days 30 -CAform PEM -CA "$subCert" -CAkeyform engine -CAkey "pkcs11:pin-value=$pin" -sha256 -CAcreateserial -in "$csr_file" -outform DER -out "$crt_file"
此命令不应要求输入 PIN,而应从 "pkcs11:pin-value=$pin" 中获取密码
【问题讨论】:
标签: shell openssl certificate