onepin profile

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

onepin profile

JP Szikora-2
Hi,

I'm testing onepin profile on last opensc from 'master' branch commited on GitHub, and with CardOS 4.3B. When I try to import a key, I've a strange error. Did I miss something ? 

With the same setup and normal profile, no problem.

Thanks,

Jean-Pierre

pkcs15-init -C -p pkcs15+onepin --pin 1234 --puk 12345678

pkcs15-tool -D
Using reader with a card: ACS ACR 38U-CCID 00 00
PKCS#15 Card [OpenSC Card]:
Version        : 0
Serial number  : 273869091505
Manufacturer ID: OpenSC Project
Last update    : 20121126120430Z
Flags          : EID compliant

PIN [User PIN]
Object Flags   : [0x3], private, modifiable
ID             : 01
Flags          : [0x32], local, initialized, needs-padding
Length         : min_len:4, max_len:8, stored_len:8
Pad char       : 0x00
Reference      : 1 (0x01)
Type           : ascii-numeric
Path           : 3f005015

pkcs15-init -S auth.key -l "AUTH" -a 01 -i 45 --pin 1234 -u digitalSignature -vv

0x7fff70729cc0 13:05:13.493 [pkcs15-init] reader-pcsc.c:375:pcsc_detect_card_presence: returning with: 5
Using reader with a card: ACS ACR 38U-CCID 00 00
0x7fff70729cc0 13:05:13.494 [pkcs15-init] reader-pcsc.c:375:pcsc_detect_card_presence: returning with: 5
Connecting to card in reader ACS ACR 38U-CCID 00 00...
0x7fff70729cc0 13:05:13.494 [pkcs15-init] card.c:125:sc_connect_card: called
Using card driver Siemens CardOS.
0x7fff70729cc0 13:05:13.905 [pkcs15-init] card-cardos.c:930:cardos_lifecycle_set: called
0x7fff70729cc0 13:05:13.905 [pkcs15-init] card-cardos.c:884:cardos_lifecycle_get: called
0x7fff70729cc0 13:05:13.912 [pkcs15-init] card-cardos.c:439:cardos_select_file: called
0x7fff70729cc0 13:05:13.951 [pkcs15-init] iso7816.c:150:iso7816_read_binary: returning with: 128
0x7fff70729cc0 13:05:13.951 [pkcs15-init] card-cardos.c:439:cardos_select_file: called
0x7fff70729cc0 13:05:13.966 [pkcs15-init] card-cardos.c:439:cardos_select_file: called
0x7fff70729cc0 13:05:14.020 [pkcs15-init] iso7816.c:150:iso7816_read_binary: returning with: 256
0x7fff70729cc0 13:05:14.020 [pkcs15-init] card-cardos.c:439:cardos_select_file: called
0x7fff70729cc0 13:05:14.052 [pkcs15-init] iso7816.c:150:iso7816_read_binary: returning with: 65
Found OpenSC Card
0x7fff70729cc0 13:05:14.052 [pkcs15-init] card-cardos.c:439:cardos_select_file: called
0x7fff70729cc0 13:05:14.107 [pkcs15-init] iso7816.c:150:iso7816_read_binary: returning with: 256
About to store public key.
0x7fff70729cc0 13:05:14.107 [pkcs15-init] card-cardos.c:439:cardos_select_file: called
0x7fff70729cc0 13:05:14.133 [pkcs15-init] card-cardos.c:930:cardos_lifecycle_set: called
0x7fff70729cc0 13:05:14.133 [pkcs15-init] card-cardos.c:884:cardos_lifecycle_get: called
0x7fff70729cc0 13:05:14.139 [pkcs15-init] card-cardos.c:964:cardos_put_data_oci: called
0x7fff70729cc0 13:05:14.303 [pkcs15-init] card-cardos.c:930:cardos_lifecycle_set: called
0x7fff70729cc0 13:05:14.303 [pkcs15-init] card-cardos.c:884:cardos_lifecycle_get: called
0x7fff70729cc0 13:05:14.310 [pkcs15-init] card-cardos.c:964:cardos_put_data_oci: called
0x7fff70729cc0 13:05:14.382 [pkcs15-init] card-cardos.c:930:cardos_lifecycle_set: called
0x7fff70729cc0 13:05:14.382 [pkcs15-init] card-cardos.c:884:cardos_lifecycle_get: called
0x7fff70729cc0 13:05:14.388 [pkcs15-init] card-cardos.c:964:cardos_put_data_oci: called
0x7fff70729cc0 13:05:14.463 [pkcs15-init] card-cardos.c:930:cardos_lifecycle_set: called
0x7fff70729cc0 13:05:14.463 [pkcs15-init] card-cardos.c:884:cardos_lifecycle_get: called
0x7fff70729cc0 13:05:14.469 [pkcs15-init] card-cardos.c:964:cardos_put_data_oci: called
0x7fff70729cc0 13:05:14.540 [pkcs15-init] card-cardos.c:930:cardos_lifecycle_set: called
0x7fff70729cc0 13:05:14.540 [pkcs15-init] card-cardos.c:884:cardos_lifecycle_get: called
0x7fff70729cc0 13:05:14.550 [pkcs15-init] card-cardos.c:964:cardos_put_data_oci: called
0x7fff70729cc0 13:05:14.622 [pkcs15-init] card-cardos.c:439:cardos_select_file: called
0x7fff70729cc0 13:05:14.633 [pkcs15-init] card-cardos.c:439:cardos_select_file: called
0x7fff70729cc0 13:05:14.655 [pkcs15-init] card-cardos.c:930:cardos_lifecycle_set: called
0x7fff70729cc0 13:05:14.655 [pkcs15-init] card-cardos.c:884:cardos_lifecycle_get: called
0x7fff70729cc0 13:05:14.661 [pkcs15-init] card-cardos.c:650:cardos_create_file: called
0x7fff70729cc0 13:05:14.857 [pkcs15-init] card-cardos.c:439:cardos_select_file: called
0x7fff70729cc0 13:05:14.878 [pkcs15-init] card-cardos.c:439:cardos_select_file: called
0x7fff70729cc0 13:05:14.903 [pkcs15-init] sec.c:204:sc_pin_cmd: returning with: -1200 (Card command failed)
Failed to store public key: Card command failed
0x7fff70729cc0 13:05:15.464 [pkcs15-init] ctx.c:787:sc_release_context: called


_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel