I've now been able to initialise the Muscle Applet, load a
privkey/cert and use firefox for client ssl.

The code change I had to make was in

src/libopensc/pkcs15-pin.c

to comment out a check for auth_info->path.len where the code then
does sc_select_file which was failing since the card is blank at the
time.

https://github.com/joelhockey/OpenSC/commit/c010dc798bc2a2ab13c21d963dce5d126812b81f

I could see that the auth_info->path was being set in
pkcs15-lib.c#sc_pkcs15init_verify_secret in the call to
sc_pkcs15_find_pin_by_type_and_reference.

I couldn't work out whether this value should actually be set, or
whether the logic that I commented out should be different (or maybe
some other change?).

If anyone has any insight, I would be interested to know.


On Sun, Dec 4, 2011 at 2:24 PM, Joel Hockey <joel.hoc...@gmail.com> wrote:
> I've got the latest code and it compiles fine for me on windows.
>
> I've created a pull request on github for what looks to be a bug in
> the pkcs15-init.c get_pin where it compares the pin auth_type.
>
> I'll keep tracking through the code, but please let me know if anyone
> has any tips for running opensc pkcs15-init with MuscleApplet.
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to