-
Notifications
You must be signed in to change notification settings - Fork 38
/
README
143 lines (104 loc) · 4.45 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
Qt based Cross-Platform YubiKey Personalization Tool
====================================================
See the file COPYING for copyright and license statement.
NOTE: This project is no longer under active development. Use https://github.com/Yubico/yubikey-manager/[YubiKey Manager CLI] or https://github.com/Yubico/yubioath-flutter/[Yubico Authenticator] to configure a YubiKey device.
Introduction
------------
The YubiKey Personalization Tool is a Qt based Cross-Platform utility
designed to facilitate re-configuration of YubiKeys on Windows, Linux
and Mac platforms. The tool provides a same simple step-by-step
approach to make configuration of YubiKeys easy to follow and
understand, while still being powerful enough to exploit all
functionality both of the YubiKey 1 and YubiKey 2 generation of
keys. The tool provides the same functionality and user interface on
Windows, Linux and Mac platforms.
The Cross-Platform YubiKey Personalization Tool provides the following
main functions:
* Programming the YubiKey in "Yubico OTP" mode
* Programming the YubiKey in "OATH-HOTP" mode
* Programming the YubiKey in "Static Password" mode
* Programming the YubiKey in "Challenge-Response" mode
* Programming the NDEF feature of the YubiKey NEO
* Testing the challenge-response functionality of a YubiKey
* Deleting the configuration of a YubiKey
* Checking type and firmware version of the YubiKey
Building from Git
-----------------
You may check out the sources using Git with the following command:
-----------
$ git clone https://github.com/Yubico/yubikey-personalization-gui.git
-----------
This will create a directory 'yubikey-personalization-gui'. Enter the
directory:
-----------
$ cd yubikey-personalization-gui
-----------
Dependencies
------------
yubikey-personalization-gui depends on version 1.14.0 or higher of
libykpers.
When building on Windows and mac you will need a binary build of
https://developers.yubico.com/yubikey-personalization[yubikey-personalization],
the contents should then be places in libs/win32, libs/win64 and libs/macx
respectively.
For building on linux pkg-config is used to find these dependencies.
On Debian-based systems (Ubuntu, Linux Mint, etc.):
-----------
$ sudo apt install libusb-1.0-0-dev qt4-qmake libykpers-1-dev \
libyubikey-dev libqt4-dev
-----------
On Fedora-based systems (RHEL, CentOS, Scientific Linux, etc.):
-----------
$ sudo dnf install libusb-devel qt-devel ykpers-devel libyubikey-devel
-----------
Command-line build
------------------
Run these commands:
On Debian-based systems:
-----------
$ qmake && make
-----------
On Fedora-based systems:
-----------
$ qmake-qt4 && make
-----------
Cross Compiling from Linux
--------------------------
The project can be cross compiled from linux for OS X and Windows. As
a first step you need a cross-compiler chain for that OS, for windows
you want mingw-w64.
Then you need unpacked http://qt-project.org[Qt binaries] for that platform.
You can then do (for Windows):
TARGET_ARCH=i686-w64-mingw32 QTDIR=<qt location> qmake \
-spec win32-g++-4.6 "CONFIG+=cross"
To build installers you can add build_installer to the CONFIG variable
for qmake. This requires makensis to be in path for windows and
genisoimage and dmg (from libhfs-dmg) for Mac.
Opening the project in Qt designer
----------------------------------
Locate the qtcreator executable file and click on it to open the Qt
Designer.
To open the project in Qt Designer, select 'File' > 'Open File or
Project' from the tool bar, navigate to the project folder, select
YKPersonalisation.pro file and click on the 'Open' button.
To set the path of the 'Build' diractory select 'Projects' > 'Build
Settings' Browse project folder path.
Building
--------
To generate the build system, select 'Build' > "Clean Project
YKPersonalization" option from the tool bar. Then select 'Build' >
'Run qmake' option from the tool bar.
To build the project, select 'Build' > 'Build Project
YKPersonalization' option from the tool bar.
Based on your platform, the successful build will create a 'YubiKey
Personalization Tool' executable file into the respective build
folder. The build creates a `YKPersonalization.exe` file on Windows,
`YubiKey Personalization Tool.sh` file on Linux and `YubiKey
Personalization Tool.app` file on Mac.
Example on Linux:
To run the YubiKey Personalization Tool, open the command shell and
execute the following command:
[source, sh]
-----------
$ build/release/yubikey-personalization-gui
-----------