WARNING: since 1st July 2014 the Yubico applets: OpenPGP, YubiOATH(AKA Yubico Authenticator), Yubico PIV - come PRE-INSTALLED. 99% of the users will not need to touch GPShell nor Yubikey NEO Manager. Don't execute commands which you do not understand you may disable your device
STEP 0Understand what you are doing. If you have multiple smartcard reader disable them! plugin just the NEO. And be sure its in mode -m82
STEP 1In this example i will show how to install the applet Yubico OATH available here:
https://github.com/Yubico/ykneo-oathThis applies to other applet as well. You may, for example, want to install your own applet (e.g. a PIV applet)
STEP 2Install GPShell. Go here:
http://sourceforge.net/projects/globalplatform/files/Download GPShell and the Library. You have to make sure that this is installed correctly. This software is not released by Yubico and we cannot help it if messy, hard to understand or whatever you feel about. There are some PPA for Ubuntu/Debian where you can download and install this simply by using "apt-get install". Add this PPA
https://launchpad.net/~klali/+archive/stuff for example.
For Windows there are binary files available on the GlobalPlatform website
(yes, this means you don't need to type incomprehensible strange commands to make it work.)STEP 3You need the .CAP file for your applet and the GPinstall.txt file. To get the pre-compiled .CAP of the Yubico OATH applet go here:
http://opensource.yubico.com/ykneo-oath/releases.htmlOn
http://opensource.yubico.com/ you will find other software as well, and if you want the pre-compiled just click the RELEASE link which is present in every subpage.
Now it is time to find the GPinstall.txt file. These are always in the Yubico GitHub page. Visit
http://github.com/yubico. For the Yubikey NEO Yubico OATH applet, the install file will be found here:
https://github.com/Yubico/ykneo-oath/bl ... nstall.txtNOTICE: the name of the projects on opensource.yubico.com and on the GitHub.com/Yubico page always match! In this case is "ykneo-oath"
STEP 4Now, edit the gpinstall.txt to match the right location of your .cap file. Default location is:
Code:
install -file ./applet/bin/pkgYkneoOath/javacard/pkgYkneoOath.cap
Change it to /home/tom/Desktop/pkgYkneoOath.cap if your .cap file is located there
( THIS IS JUST AN EXAMPLE! )STEP 5On Linux run GPShell:
Code:
/usr/bin/gpshell /home/tom/Desktop/gpinstall.txt
On Windows the command would look like something like this:
Code:
C:\GPshelll-1.4.4\gpshell C:\User\Tom\Desktop\gpinstall.txt
STEP 6The terminal will output a lot of stuff. If you get something like this at the end, then probably everything has gone well!
Code:
Command --> 80E88013D7C000C400BE00C700CA00CA00B400BE00CE00D200D500D700B000DB00C700DF00BEFFFF00BE00E400AC00AE00AE00DB00E700A
A00EA00ED00ED00ED00BE00EF00F100F400F100F700FA00FF00BE00F700AA01010103010700CA00C400B400AA00F700B400AA00B600C7010C
010C00AA0140012001B0056810B0013005600000056810E0011006B4B44304B44404B44106B44B4405B443400343B002410636810E06B4B44
407326810B004B43103441003334002B102B404B3B403BB4003B440076820A4100221024405B4341008B44600000231066820A100
Wrapped command --> 84E88013DFC000C400BE00C700CA00CA00B400BE00CE00D200D500D700B000DB00C700DF00BEFFFF00BE00E400AC00AE00AE00DB00E700A
A00EA00ED00ED00ED00BE00EF00F100F400F100F700FA00FF00BE00F700AA01010103010700CA00C400B400AA00F700B400AA00B600C7010C
010C00AA0140012001B0056810B0013005600000056810E0011006B4B44304B44404B44106B44B4405B443400343B002410636810E06B4B44
407326810B004B43103441003334002B102B404B3B403BB4003B440076820A4100221024405B4341008B44600000231066820A15D848CB77
27D0EDA00
Response <-- 009000
Command --> 80E60C002107A000000527210108A00000052721010108A000000527210101010003C901000000
Wrapped command --> 84E60C002907A000000527210108A00000052721010108A000000527210101010003C9010000B4648127914A4C7C00
Response <-- 009000
card_disconnect
release_context
STEP 7Unplug your Yubikey NEO and go test it with a NEXUS device.