This is an old revision of the document!


Yubikey

  • Types: Yubikey 4, Yubikey 4 Nano, Yubikey Nano
  • Switch to CCID mode: Yubikey Neo Manager
    • process with pictures

Upload JavaCard applet via GPShell. Used script:

  mode_211
  enable_trace
  establish_context
  card_connect 
  select -AID a000000003000000
  open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f
  #get_status -element 100
  #delete -AID 6D7970616330303031
  #delete -AID 6D797061636B616731
  #install -file AlgTest.cap -nvDataLimit 2000 -instParam 00 
  card_disconnect 
  release_context
>GPShell.exe yubikeyinstall.txt
mode_211
enable_trace
establish_context
card_connect
* reader name Yubico Yubikey NEO CCID 0
select -AID a000000003000000
Command --> 00A4040008A000000003000000
Wrapped command --> 00A4040008A000000003000000
Response <-- 6F658408A000000003000000A5599F6501FF9F6E06479112103800734A06072A864
886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B06092A864886FC6B0
40255650B06092B8510864864020103660C060A2B060104012A026E01029000
open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4
f -enc_key 404142434445464748494a4b4c4d4e4f
Command --> 80CA006600
Wrapped command --> 80CA006600
Response <-- 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864
886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012
A026E01029000
Command --> 805000000843D9EC752E07E13200
Wrapped command --> 805000000843D9EC752E07E13200
Response <-- 0000431702720893280002020002C7333C9DE8A3B017C206FA9B091C9000
mutual_authentication() returns 0x80302000 (The verification of the card cryptog
ram failed.)