Re: SO PIN creation
Peter Popovec <[email protected]> Thu, 19 Apr 2018 07:18:45 +0200
| Newsgroups | gmane.comp.encryption.opensc.devel |
|---|---|
| Message-ID | <CAMZViR8Aym+Kc+6WCcck=poEgYJ8HYk-BvE593wis4OfisFSLw@mail.gmail.com> |
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 <[email protected]> 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 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot