OpenSSL & Smart Cards

Started playing with (PKI) smart cards with OpenSSL. Nothing is working so far, but thought I would at least keep my starting point, if I come back to it later. If you have any more suggestions, I would be happy to take a look or greatful for a solution.

Basically I want to decrypt email using my smart card & openssl.

openssl> engine dynamic -pre SO_PATH:/usr/lib/engines/engine_pkcs11.so -pre ID:pkcs11 -pre LIST_ADD:1 -pre LOAD -pre MODULE_PATH:opensc-pkcs11.so

something like:
openssl> smime -decrypt -in ______ -noverify -keyform engine -engine pkcs11 -id ____

http://ubuntuforums.org/showthread.php?t=1557180

http://www.openssl.org/docs/apps/smime.html

http://www.opensc-project.org/engine_pkcs11/wiki/QuickStart