Skip to content

PIV smart card

SecTrustKey includes a PIV application, managed with Yubico's ykman or OpenSC tools. On Linux, set up pcscd first as described in OpenPGP and GnuPG.

Change the factory secrets

ykman --reader SecTrustKey piv access change-pin                  # factory 123456
ykman --reader SecTrustKey piv access change-puk                  # factory 12345678
ykman --reader SecTrustKey piv access change-management-key --generate --protect

Keys and certificates

ykman --reader SecTrustKey piv keys generate --algorithm ECCP256 9a pub.pem
ykman --reader SecTrustKey piv certificates generate --subject "CN=Koustav" 9a pub.pem
ykman --reader SecTrustKey piv info
Slot Usual purpose
9a Authentication (login, SSH via PKCS#11)
9c Digital signature
9d Key management (decryption)
9e Card authentication

Note

PIV operations do not show a confirmation prompt; they are protected by the PIV PIN.