> running these commands would still help:
> > > openssl dgst -md5 -binary -out digest_file < message_file
> > > pkcs15-crypt -s --md5 --pkcs1 -i digest_file -o signature_file
> > > openssl dgst -verify public_key_file -md5 -signature signature_file \
> > >   < message_file
> 
> pkcs15-crypt is a mid-level command for testing opensc. if it works,
> the problem is in the upper half (opensc-pkcs11.so), if it doesn't
> work, the problem is in the lower half (opensc core).

Hi Andreas,
pkcs15-crypt -s doesn't work either. See command output:

----8<-----8<----
$ echo foobar > message_file
$ openssl dgst -md5 -binary -out digest_file < message_file
$ pkcs15-crypt -s --md5 --pkcs1 -i digest_file -o signature_file
Using reader with a card: SCM SPR 532 (60200C6F) 00 00
Enter PIN [User PIN]: 
Compute signature failed: Card command failed
----8<-----8<----

Do you want the debug output as well?

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

Reply via email to