Open source implementation of the OpenPGP smart card version 2.0 on a java card.
The applet was developed and tested on a JCOP 2.4.1 card (NXP J2A080).
Make sure that the card reader is working.
The easiest way is to use GlobalPlatformPro to install the CAP file
The harder way is to use the GlobalPlatform tools
The actual parameters used to load the applet on the card depend on the card manufacturer, version and state. If using a JCOP 2.4.1 cards with test keys, the 'installJCOP41GPG.gpshell' script can be used:
gpshell installJCOP41GPG.gpshell
Warning! Too many failed authentications when trying to load the applet can lock the card and make it unusable.
gpg2 --card-edit
The user PIN is '123456' and the admin PIN is '12345678' and it changing them is recommended.
For more details check this page: http://wiki.fsfe.org/Card_howtos (but note that the 'with backup' methods will need GnuPG 2.0.22 or above).