Re: SO PIN creation

Maksym Tiurin <[email protected]> Wed, 18 Apr 2018 22:34:13 -0700
Newsgroups gmane.comp.encryption.opensc.devel
Message-ID <[email protected]>
On 04/18/18 22:18, Peter Popovec wrote:
> 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'
Unfortunately, it doesn't work.
I can create multiple PINs using --store-pin but these PINs don't have
"soPin" flag.

I get error when I try to activate card without real SO PIN (with flags
" [0xB0], initialized, needs-padding, soPin").
>
> 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