Skip to content
Discussion options

You must be logged in to vote

looks like the pkcs go library isn't initializing the session correclty if the slot is recalled....(i'm not sure why that'd be the case).

how i got around that is with the diff shown below which i compiled into HEAD

after that, i can use the cosign cli and sign-blob using the 9c PIV (ID=02 below)

export COSIGN_PKCS11_IGNORE_CERTIFICATE=1
export COSIGN_PKCS11_MODULE_PATH="/usr/lib/x86_64-linux-gnu/libykcs11.so"
export COSIGN_PKCS11_PIN="123456"

$ cosign pkcs11-tool list-tokens

    Listing tokens of PKCS11 module '/usr/lib/x86_64-linux-gnu/libykcs11.so'
    Token in slot 0
      Label: YubiKey PIV #13981219
      Manufacturer: Yubico (www.yubico.com)
      Model: YubiKey YK5
      S/N: 13…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Kynson
Comment options

Answer selected by Kynson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants