Yubikey PIV PKCS#11
This project is forked form: https://github.com/google/native-pkcs11
OpenSC pkcs11-tool
Alias:
alias p11='pkcs11-tool --module /FULLPATH/libyubikey_piv_pkcs11.dylib'
List certificates:
p11 --list-object --type cert
OpenSSH
Alias:
alias sshp11='ssh -I /FULLPATH/libyubikey_piv_pkcs11.dylib'
SSH server:
sshp11 root@example.com
Configuration
Turn on retired slots
Default retired slots are disabled, turn on:
export ENABLE_RETIRED=1
Slot filter
export SLOT_FILTER=9a,83
Pin entry
Default pin entry command:
/usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac
Set pin entry command by env:
export PIN_ENTRY_CMD=pin-entry-command
or edit file ~/.pinentry.cmd,
if no pin entry found, will use pinentry.
Languages
Rust
99.8%
C
0.2%