Hi Nils,

this is with Eddy's patch; before that I was never able to get this far ;-)
also, I can dump the contents of my etoken now using
  ./opensc-tool -f
and even a 'get' a file using opensc-explorer seems to work now, except 
for the fact that I don't know what type of file it actually gets ;-) If 
I grab my public certificate from an eToken would that be in DER format? 
then there's a slight problem, as openssl can't grok it ...

cheers,

Jan Just Keijser
System Integrator
Nikhef / Amsterdam

Nils Larsch wrote:
> Jan Just Keijser wrote:
>> Hi Eddy,
>>
>> hmmm I was hoping to get cross-platform cross-software pkcs11 support 
>> to work. However, pkcs15-init also fails on me, BTW:
>>
>> ./pkcs15-init -C -v -v -v
>> [pkcs15-init] sc.c:196:sc_detect_card_presence: called
>> [pkcs15-init] reader-openct.c:207:openct_reader_detect_card_presence: 
>> called
>> [pkcs15-init] sc.c:201:sc_detect_card_presence: returning with: 1
>> Connecting to card in reader Aladdin eToken PRO 64k...
>> [pkcs15-init] card.c:110:sc_connect_card: called
>> [pkcs15-init] reader-openct.c:231:openct_reader_connect: called
>> [pkcs15-init] card.c:221:sc_connect_card: card info: CardOS M4, -1, 0x0
>> [pkcs15-init] card.c:222:sc_connect_card: returning with: 0
>> Using card driver Siemens CardOS.
>> [pkcs15-init] reader-openct.c:431:openct_reader_lock: called
>> [pkcs15-init] card.c:668:sc_card_ctl: called
>> [pkcs15-init] card-cardos.c:901:cardos_lifecycle_set: called
>> [pkcs15-init] card-cardos.c:855:cardos_lifecycle_get: called
>> [pkcs15-init] card-cardos.c:889:cardos_lifecycle_get: returning with: 0
>> [pkcs15-init] card.c:678:sc_card_ctl: returning with: 0
>> [pkcs15-init] card.c:532:sc_select_file: called; type=2, 
>> path=3f0050154946
>> [pkcs15-init] card-cardos.c:434:cardos_select_file: called
>> [pkcs15-init] card-cardos.c:262:cardos_check_sw: file not found
>> [pkcs15-init] iso7816.c:464:iso7816_select_file: returning with: -1201
>> [pkcs15-init] card-cardos.c:438:cardos_select_file: returning with: 
>> -1201
>> [pkcs15-init] card.c:554:sc_select_file: returning with: -1201
>> [pkcs15-init] profile.c:317:sc_profile_load: Trying profile file 
>> /usr/share/opensc/pkcs15.profile
>> [pkcs15-init] profile.c:325:sc_profile_load: profile 
>> /usr/share/opensc/pkcs15.profile loaded ok
>> [pkcs15-init] profile.c:317:sc_profile_load: Trying profile file 
>> /usr/share/opensc/cardos.profile
>> [pkcs15-init] profile.c:325:sc_profile_load: profile 
>> /usr/share/opensc/cardos.profile loaded ok
>> About to create PKCS #15 meta structure.
>> New Security Officer PIN (Optional - press return for no PIN).
>> Please enter Security Officer PIN:
>> [pkcs15-init] card.c:532:sc_select_file: called; type=2, path=3f00
>> [pkcs15-init] card-cardos.c:434:cardos_select_file: called
>> [pkcs15-init] card-cardos.c:438:cardos_select_file: returning with: 0
>> [pkcs15-init] card.c:554:sc_select_file: returning with: 0
>> [pkcs15-init] pkcs15-lib.c:3244:sc_pkcs15init_authenticate: 
>> path=3f00, op=3
>> [pkcs15-init] card.c:668:sc_card_ctl: called
>> [pkcs15-init] card-cardos.c:901:cardos_lifecycle_set: called
>> [pkcs15-init] card-cardos.c:855:cardos_lifecycle_get: called
>> [pkcs15-init] card-cardos.c:889:cardos_lifecycle_get: returning with: 0
>> [pkcs15-init] card.c:678:sc_card_ctl: returning with: 0
>> [pkcs15-init] card.c:362:sc_create_file: called; type=2, 
>> path=3f005015, size=4096
>> [pkcs15-init] card-cardos.c:645:cardos_create_file: called
>> [pkcs15-init] card.c:367:sc_create_file: returning with: Not supported
>
> the most likely cause for this is that opensc doesn't know the
> precise type of your os
>
>> Failed to create PKCS #15 meta structure: Not supported
>> [pkcs15-init] reader-openct.c:458:openct_reader_unlock: called
>> [pkcs15-init] card.c:236:sc_disconnect_card: called
>> [pkcs15-init] reader-openct.c:280:openct_reader_disconnect: called
>> [pkcs15-init] card.c:251:sc_disconnect_card: returning with: 0
>> [pkcs15-init] ctx.c:736:sc_release_context: called
>> [pkcs15-init] reader-openct.c:180:openct_reader_release: called
>> [pkcs15-init] reader-openct.c:180:openct_reader_release: called
>> [pkcs15-init] reader-openct.c:180:openct_reader_release: called
>> [pkcs15-init] reader-openct.c:180:openct_reader_release: called
>> [pkcs15-init] reader-openct.c:180:openct_reader_release: called
>> [pkcs15-init] reader-openct.c:165:openct_reader_finish: called
>
> did you try this with the patch Eddy send ?
>
> Nils

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

Reply via email to