From: Peter P. <pop...@gm...> - 2018-04-19 05:18:53
|
Hi IMHO, you can try to create SO-PIN by: $ pkcs15-init --store-pin --auth-id 03 --label 'Security Officer PIN' --reader 0 --pin '12345678' --puk '87654321' and then $ pkcs15-init -F -- reader 0 P. On Thu, Apr 19, 2018 at 4:11 AM, Maksym Tiurin <mr...@bu...> wrote: > Hi, > > Is it possible to create SO PIN & PUK codes for already created PKCS15? > > I have couple of Aventra MyEID v4. During card formatting I didn't set SO > PIN & PUK codes. > Unfortunately, I can't activate these cards. Since certificates are already > imported into cards it would be painfull to erase these cards, reformat and > import new certificates. > > Steps to reproduce (similar to described on > https://github.com/OpenSC/OpenSC/wiki/Aventra-MyEID-PKI-card ): > $ pkcs15-init --create-pkcs15 --label 'Firstname Lastname' --reader 0 > --so-pin '' --so-puk '' --pin '12345678' --puk '87654321' > $ pkcs15-init --store-pin --auth-id 01 --label 'nickname' --reader 0 --pin > '12345678' --puk '87654321' > $ pkcs15-init -F --reader 0 > Failed to finalizing card: Not allowed |