El jue, 03-02-2011 a las 23:58 +0100, Andre Zepezauer escribió: > There is a problem with reading of public keys and certificates. Try to > do it manually with opensc-explorer. If it fails with some error like > 'security status not satisfied' then you can login via: > "verify CHV1 31:32:33:34" (ID of PIN 1 and code is 1234)
I finally found the bug: DNIe stores the certificates and keys in compressed format, and a wild pointer in the detect-and-uncompress code returned nonsense data Anyway, I still need path rewriting patch. When everything get working I'll need some indications on how to integrate your module into DNIe and OpenSC code (with proper copyright notices, of course) About visibility of certificates and keys patch, notice that DNIe requires the user to enter pin for just read (neither signature nor authentication) user certificates. It's not standard, I know, but seems to be a very common issue in some cards > > Ok. I'll add some debugging points, write dnie_list_files()... > > and go to sleep :-) (here in Spain is 00:16 am, too late for me) > > Why you need dnie_list_files()? To dump 3f0060817004 you can use: > cd 6081 > cat 7004 Yes, I know: it was a "no-cert-related-problem" pending task to allowed me a bit of "relax" :-). Btw ¿is there any standard apdu for listing files?. Some of OpenSC card drivers uses GetData apdu on DF files, some other uses propietary apdu's, and finally some others (as mine does) just dirty and slowly iterate and check every possible file id values... Thanks again for your help. Now I can restart work Juan Antonio
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel