Hello,

On Sun, May 6, 2012 at 11:20 AM, Peter Koch <p...@opensc-project.org> wrote:

> I just tried to erase my old Cryptoflex card an recreate a
> PKCS#15-structure
> under Windows.
>
> First problem was: flex.profile was missing - here's the relevant debug
> output from pkcs15-init -Cvvv
>
> 2012-05-06 10:57:54.577 Trying profile file C:\Programme\OpenSC
> Project\OpenSC\profiles\pkcs15.profile
> 2012-05-06 10:57:54.577 profile C:\Programme\OpenSC
> Project\OpenSC\profiles\pkcs15.profile loaded ok
> 2012-05-06 10:57:54.577 [pkcs15-init] profile.c:380:sc_profile_load:
> returning with: 0 (Success)
> 2012-05-06 10:57:54.587 [pkcs15-init] profile.c:327:sc_profile_load: called
> 2012-05-06 10:57:54.587 Using profile directory 'C:\Programme\OpenSC
> Project\OpenSC\profiles'.
> 2012-05-06 10:57:54.587 Trying profile file C:\Programme\OpenSC
> Project\OpenSC\profiles\flex.profile
> 2012-05-06 10:57:54.598 profile C:\Programme\OpenSC
> Project\OpenSC\profiles\flex.profile loaded ok
> 2012-05-06 10:57:54.598 [pkcs15-init] profile.c:373:sc_profile_load:
> returning with: -1201 (File not found)
> 2012-05-06 10:57:54.598 Failed to load profile 'flex': File not found
> 2012-05-06 10:57:54.608 [pkcs15-init] pkcs15-lib.c:374:sc_pkcs15init_bind:
> Load profile error: -1201 (File not found)
> Couldn't bind to the card: File not found
>
> So I copied flex.profile (and some other profiles which were also missing)
> into
> the profiles-directory.
>
> Next problem: pkcs15-init -C tells me it cannot read the PIN:
>
> C:\Programme\OpenSC Project\OpenSC\tools>pkcs15-init -C
> Using reader with a card: SCM Microsystems Inc. SPRx32 USB Smart Card
> Reader 0
> Failed to read PIN: Not supported
> Failed to create PKCS #15 meta structure: Generic PKCS#15 initialization
> error
>
> Debug-output does not help but there seems to be a ticket and a fix.
>
> Is this ticket #402: http://www.opensc-project.org/opensc/ticket/402 ?


Are you expecting to use PIN-pad reader with the pkcs15-init tool ?
Have you tried with the non-pinpad reader ?
What package, version are you using ?

'For-me-it-works" with CryptoFlex-16k, non-pinpad reader and
latest MSI (32bits) of the OpenSC 'secure-messaging' branch.

With PIN-pad  the 'pkcs15-init -C' prompts to enter SOPIN at the command
line.
Not sure that it's a bug, not sure that pkcs15-init *has* to work with
pin-pad.

PinPad (Gemalto's PC PinPad reader) works properly when trying to verify
PIN in opensc-explorer.



> Peter


Kind regards,
Viktor.


Kind regards,
Viktor.


>
>
> _______________________________________________
> opensc-devel mailing list
> opensc-devel@lists.opensc-project.org
> http://www.opensc-project.org/mailman/listinfo/opensc-devel
>
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to