Le mercredi 13 janvier 2010 à 13:27 +0100, Andreas Jellinghaus a écrit :
> thanks, commited to svn trunk.

Thanks. One problem did not catch my eye. It seems that I cannot erase
cards any longer. 

I would reproduce with one blank&never used card and one used card:

pkcs15-init -E -vvv
2010-01-13 14:18:16.020 [pkcs15-init] sc.c:199:sc_detect_card_presence:
called
2010-01-13 14:18:16.020 [pkcs15-init] sc.c:204:sc_detect_card_presence:
returning with: 1
Using reader with a card: Feitian SCR301 00 00
2010-01-13 14:18:16.020 [pkcs15-init] sc.c:199:sc_detect_card_presence:
called
2010-01-13 14:18:16.020 [pkcs15-init] sc.c:204:sc_detect_card_presence:
returning with: 1
Connecting to card in reader Feitian SCR301 00 00...
2010-01-13 14:18:16.021 [pkcs15-init] card.c:110:sc_connect_card: called
2010-01-13 14:18:16.051 [pkcs15-init] reader-pcsc.c:533:pcsc_connect:
After connect protocol = 2
2010-01-13 14:18:16.101 [pkcs15-init] muscle.c:276:msc_select_applet:
returning with: -1200
2010-01-13 14:18:16.101 [pkcs15-init] card-piv.c:1757:piv_match_card:
called
2010-01-13 14:18:16.101 [pkcs15-init] card-piv.c:493:piv_find_aid:
called
2010-01-13 14:18:16.134 [pkcs15-init] iso7816.c:99:iso7816_check_sw:
Conditions of use not satisfied
2010-01-13 14:18:16.167 [pkcs15-init] iso7816.c:99:iso7816_check_sw:
Conditions of use not satisfied
2010-01-13 14:18:16.167 [pkcs15-init] card-piv.c:576:piv_find_aid:
returning with: -1208
2010-01-13 14:18:16.167 [pkcs15-init]
card-entersafe.c:101:entersafe_match_card: called
2010-01-13 14:18:16.167 [pkcs15-init]
card-entersafe.c:114:entersafe_init: called
2010-01-13 14:18:16.167 [pkcs15-init] card.c:221:sc_connect_card: card
info: entersafe, 19002, 0x0
2010-01-13 14:18:16.167 [pkcs15-init] card.c:222:sc_connect_card:
returning with: 0
Using card driver entersafe.
2010-01-13 14:18:16.167 [pkcs15-init] card.c:675:sc_card_ctl: called
2010-01-13 14:18:16.167 [pkcs15-init]
card-entersafe.c:1531:entersafe_card_ctl_2048: called
2010-01-13 14:18:16.167 [pkcs15-init] card.c:682:sc_card_ctl:
card_ctl(4) not supported
2010-01-13 14:18:16.167 [pkcs15-init] card.c:539:sc_select_file: called;
type=2, path=3f0050154946
2010-01-13 14:18:16.167 [pkcs15-init]
card-entersafe.c:641:entersafe_select_file: called
2010-01-13 14:18:16.188 [pkcs15-init] iso7816.c:99:iso7816_check_sw:
Conditions of use not satisfied
2010-01-13 14:18:16.189 [pkcs15-init] iso7816.c:462:iso7816_select_file:
returning with: -1209
2010-01-13 14:18:16.189 [pkcs15-init]
card-entersafe.c:467:entersafe_select_fid: APDU transmit failed: Not
allowed
2010-01-13 14:18:16.189 [pkcs15-init]
card-entersafe.c:628:entersafe_select_path: SELECT FILE (DF-ID) failed:
Not allowed
2010-01-13 14:18:16.189 [pkcs15-init] card.c:561:sc_select_file:
returning with: -1209
2010-01-13 14:18:16.189 [pkcs15-init] profile.c:316:sc_profile_load:
Using profile directory '/usr/share/opensc'.
2010-01-13 14:18:16.189 [pkcs15-init] profile.c:328:sc_profile_load:
Trying profile file /usr/share/opensc/pkcs15.profile
2010-01-13 14:18:16.189 [pkcs15-init] profile.c:336:sc_profile_load:
profile /usr/share/opensc/pkcs15.profile loaded ok
2010-01-13 14:18:16.189 [pkcs15-init] profile.c:316:sc_profile_load:
Using profile directory '/usr/share/opensc'.
2010-01-13 14:18:16.189 [pkcs15-init] profile.c:328:sc_profile_load:
Trying profile file /usr/share/opensc/entersafe.profile
2010-01-13 14:18:16.190 [pkcs15-init] profile.c:336:sc_profile_load:
profile /usr/share/opensc/entersafe.profile loaded ok
About to erase card.
2010-01-13 14:18:16.190 [pkcs15-init] pkcs15.c:700:sc_pkcs15_bind:
called
2010-01-13 14:18:16.190 [pkcs15-init] pkcs15.c:718:sc_pkcs15_bind:
PKCS#15 options: use_file_cache=0 use_pin_cache=1 pin_cache_counter=10
2010-01-13 14:18:16.190 [pkcs15-init] card.c:539:sc_select_file: called;
type=2, path=3f002f00
2010-01-13 14:18:16.190 [pkcs15-init]
card-entersafe.c:641:entersafe_select_file: called
2010-01-13 14:18:16.211 [pkcs15-init] iso7816.c:99:iso7816_check_sw:
Conditions of use not satisfied
2010-01-13 14:18:16.212 [pkcs15-init] iso7816.c:462:iso7816_select_file:
returning with: -1209
2010-01-13 14:18:16.212 [pkcs15-init]
card-entersafe.c:467:entersafe_select_fid: APDU transmit failed: Not
allowed
2010-01-13 14:18:16.212 [pkcs15-init]
card-entersafe.c:628:entersafe_select_path: SELECT FILE (DF-ID) failed:
Not allowed
2010-01-13 14:18:16.212 [pkcs15-init] card.c:561:sc_select_file:
returning with: -1209
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15.c:537:sc_pkcs15_bind_internal: unable to enumerate apps: Not
allowed
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-syn.c:112:sc_pkcs15_bind_synthetic: called
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-syn.c:153:sc_pkcs15_bind_synthetic: no emulator list in config
file, trying all builtin emulators
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-syn.c:155:sc_pkcs15_bind_synthetic: trying westcos
2010-01-13 14:18:16.212 [pkcs15-init]
p15emu-westcos.c:252:sc_pkcs15emu_westcos_init_ex:
sc_pkcs15_init_func_ex westcos
2010-01-13 14:18:16.212 [pkcs15-init]
p15emu-westcos.c:239:westcos_detect_card: westcos_detect_card
(entersafe)
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-syn.c:155:sc_pkcs15_bind_synthetic: trying openpgp
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-syn.c:155:sc_pkcs15_bind_synthetic: trying infocamere
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-syn.c:155:sc_pkcs15_bind_synthetic: trying starcert
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-syn.c:155:sc_pkcs15_bind_synthetic: trying tcos
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-syn.c:155:sc_pkcs15_bind_synthetic: trying esteid
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-syn.c:155:sc_pkcs15_bind_synthetic: trying postecert
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-syn.c:155:sc_pkcs15_bind_synthetic: trying PIV-II
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-piv.c:513:sc_pkcs15emu_piv_init_ex: called
2010-01-13 14:18:16.212 [pkcs15-init] pkcs15-piv.c:100:piv_detect_card:
called
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-syn.c:155:sc_pkcs15_bind_synthetic: trying gemsafeGPK
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-gemsafeGPK.c:511:sc_pkcs15emu_gemsafeGPK_init_ex: Entering
sc_pkcs15emu_gemsafeGPK_init_ex
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-gemsafeGPK.c:163:gemsafe_detect_card: called
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-syn.c:155:sc_pkcs15_bind_synthetic: trying gemsafeV1
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-syn.c:155:sc_pkcs15_bind_synthetic: trying actalis
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-syn.c:155:sc_pkcs15_bind_synthetic: trying atrust-acos
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-syn.c:155:sc_pkcs15_bind_synthetic: trying tccardos
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-syn.c:155:sc_pkcs15_bind_synthetic: trying entersafe
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-esinit.c:77:sc_pkcs15emu_entersafe_init_ex: called
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-esinit.c:33:entersafe_detect_card: called
2010-01-13 14:18:16.212 [pkcs15-init]
pkcs15-esinit.c:49:sc_pkcs15emu_entersafe_init: called
2010-01-13 14:18:16.212 [pkcs15-init] card.c:675:sc_card_ctl: called
2010-01-13 14:18:16.212 [pkcs15-init]
card-entersafe.c:1531:entersafe_card_ctl_2048: called
2010-01-13 14:18:16.213 [pkcs15-init]
card-entersafe.c:1357:entersafe_get_serialnr: called
2010-01-13 14:18:16.213 [pkcs15-init]
card-entersafe.c:322:entersafe_transmit_apdu: called
2010-01-13 14:18:16.239 [pkcs15-init] card.c:685:sc_card_ctl: returning
with: 0
2010-01-13 14:18:16.240 [pkcs15-init]
pkcs15-entersafe.c:64:entersafe_erase_card: called
2010-01-13 14:18:16.240 [pkcs15-init] card.c:675:sc_card_ctl: called
2010-01-13 14:18:16.240 [pkcs15-init]
card-entersafe.c:1531:entersafe_card_ctl_2048: called
2010-01-13 14:18:16.240 [pkcs15-init]
card-entersafe.c:1001:entersafe_erase_card: called
2010-01-13 14:18:16.240 [pkcs15-init]
card-entersafe.c:322:entersafe_transmit_apdu: called
2010-01-13 14:18:16.260 [pkcs15-init]
card-entersafe.c:322:entersafe_transmit_apdu: called
2010-01-13 14:18:16.261 [pkcs15-init]
card-entersafe.c:229:entersafe_mac_apdu: called
2010-01-13 14:18:16.261 [pkcs15-init]
card-entersafe.c:150:entersafe_gen_random: called
2010-01-13 14:18:16.291 [pkcs15-init]
card-entersafe.c:164:entersafe_gen_random: returning with: 0
2010-01-13 14:18:16.316 [pkcs15-init] iso7816.c:99:iso7816_check_sw:
Conditions of use not satisfied
2010-01-13 14:18:16.317 [pkcs15-init] card.c:685:sc_card_ctl: returning
with: -1209
Failed to erase card: Not allowed
2010-01-13 14:18:16.321 [pkcs15-init] card.c:236:sc_disconnect_card:
called
2010-01-13 14:18:16.402 [pkcs15-init] card.c:251:sc_disconnect_card:
returning with: 0
2010-01-13 14:18:16.402 [pkcs15-init] ctx.c:746:sc_release_context:
called

pkcs15-tool --dump -v
Using reader with a card: Feitian SCR301 00 00
Connecting to card in reader Feitian SCR301 00 00...
Using card driver entersafe.
Trying to find a PKCS#15 compatible card...
Found (null)!
PKCS#15 Card [(null)]:
        Version        : 0
        Serial number  : 2998511513171109
        Manufacturer ID: entersafe
        Flags          : 

Card has 0 PIN code(s).

Card has 0 private key(s).

Card has 0 public key(s).

Card has 0 certificate(s).


Kind regards,
Jean-Michel

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée

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

Reply via email to