gnuk/doc/gnuk-token-initial-configuration.rst

42 lines
1.3 KiB
ReStructuredText
Raw Normal View History

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)
========================
2016-06-21 05:44:51 +00:00
Note that this is completely optional step. I don't know anyone other than me, do this. Even for me, I only do that for a single device among multiple devices I use. I do that to test the feature.
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
2016-06-21 05:44:51 +00:00
Device:
2013-02-13 05:23:24 +00:00
Configuration: 1
Interface: 0
d2 76 00 01 24 01 02 00 f5 17 00 00 00 01 00 00