2012-08-03 01:53:04 +00:00
===================================
Initial Configuration of Gnuk Token
===================================
2013-10-24 07:02:50 +00:00
This is optional step.
You don't need to setup the serial number of Gnuk Token,
2013-02-13 05:23:24 +00:00
as it comes with its default serial number based on MCU's chip ID.
You can setup the serial number of Gnuk Token only once.
2012-08-03 01:53:04 +00:00
Conditions
==========
I assume you are using GNU/Linux.
Preparation
===========
2013-02-13 05:23:24 +00:00
Make sure there is no `` scdaemon `` for configuring Gnuk Token. You can kill `` scdaemon `` by: ::
2012-08-03 01:53:04 +00:00
$ gpg-connect-agent "SCD KILLSCD" "SCD BYE" /bye
Serial Number (optional)
========================
2013-02-13 05:23:24 +00:00
In the file `` GNUK_SERIAL_NUMBER `` , each line has email and 6-byte serial number. The first two bytes are organization number (F5:17 is for FSIJ). Last four bytes are number for tokens.
2012-08-03 01:53:04 +00:00
2013-02-13 05:23:24 +00:00
The tool `` ../tool/gnuk_put_binary_libusb.py `` examines environment variable of `` EMAIL `` , and writes corresponding serial number to Gnuk Token. ::
2012-08-03 01:53:04 +00:00
2013-02-13 05:23:24 +00:00
$ ../tool/gnuk_put_binary_libusb.py -s ../GNUK_SERIAL_NUMBER
2012-08-03 01:53:04 +00:00
Writing serial number
2013-02-13 05:23:24 +00:00
Device: 006
Configuration: 1
Interface: 0
d2 76 00 01 24 01 02 00 f5 17 00 00 00 01 00 00
2012-08-03 01:53:04 +00:00
2013-02-13 05:23:24 +00:00
The example above is the case of libusb version.
2012-08-03 01:53:04 +00:00
2013-02-13 05:23:24 +00:00
Use the tool `` ../tool/gnuk_put_binary.py `` instead , for PC/SC Lite.
You need PyScard for this.