Ticket #117 (new defect)

Opened 2 years ago

Last modified 2 years ago

pkcs11-tool can't create keys

Reported by: aj Owned by: opensc-devel@…
Priority: normal Milestone:
Component: opensc Version: 0.11.1
Severity: normal Keywords:
Cc:

Description

example code posted by sylvie camus: opensc-pkcs15 –E –C pkcs15+onepin –-no-so-pin –c cyblerflex –pin 1234 –puk 123456789 –a 01 –l label

pkcs11-tool –k –key-type RSA:1024 –a keypair –l –slot 0

fails with: This application returns an error : CKR_GENERAL_ERROR

why? what is the proper way to do this?

tested with cryptoflex 32k in egate token adapter.

Change History

Changed 2 years ago by aj

tested, works. you need to enable cache_pin in the config file. example:

pkcs15-init --erase-card --use-default-transport-key
pkcs15-init --create-pkcs15 --profile pkcs15+onepin --use-default-transport-key\
         --pin 123456 --puk 78907890 --label "Test User"
pkcs11-tool --keypairgen --key-type rsa:1024 --pin 123456
Note: See TracTickets for help on using tickets.