Line 0
Link Here
|
|
|
1 |
.Dd October 23, 2020 |
2 |
.Dt ONLYKEY-CLI 1 |
3 |
.Os |
4 |
.Sh NAME |
5 |
.Nm onlykey-cli |
6 |
.Nd Python client for interacting with the OnlyKey |
7 |
.Sh SYNOPSIS |
8 |
.Nm |
9 |
.Op Ar command |
10 |
.Sh DESCRIPTION |
11 |
.Nm |
12 |
is a command line interface to the OnlyKey that can be used for |
13 |
configuration (similar functionality to OnlyKey App). You can either |
14 |
provide a |
15 |
.Ar command |
16 |
to get it executed immediately or run |
17 |
.Nm |
18 |
without parameters to open an interactive prompt and type commands there. |
19 |
.Sh COMMANDS |
20 |
.Bl -tag -width 2n |
21 |
.It Xo |
22 |
.Cm init |
23 |
.Xc |
24 |
.Pp |
25 |
Sets OnlyKey into initial configuration mode (setting PIN). |
26 |
.It Xo |
27 |
.Cm settime |
28 |
.Xc |
29 |
.Pp |
30 |
Sets time on OnlyKey, time is needed for TOTP (Google Authenticator). |
31 |
.It Xo |
32 |
.Cm getlabels |
33 |
.Xc |
34 |
.Pp |
35 |
Prints label for each slot. |
36 |
.It Xo |
37 |
.Cm getkeylabels |
38 |
.Xc |
39 |
.Pp |
40 |
Prints key label for each RSA and ECC key. |
41 |
.It Xo |
42 |
.Cm setslot |
43 |
.Ar slot_id |
44 |
.Ar type |
45 |
.Ar value |
46 |
.Xc |
47 |
.Pp |
48 |
For the specified slot sets parameter of the specified |
49 |
.Ar type |
50 |
to the |
51 |
.Ar value |
52 |
provided. |
53 |
.Bl -tag -width indent |
54 |
.It Ar slot_id |
55 |
Slot id: 1a-6b. |
56 |
.It Ar type |
57 |
Type of the parameter to set. Must be one of the following: |
58 |
.Bl -tag -offset 4n -width 8n |
59 |
.It Sy label |
60 |
The slot label. |
61 |
.It Sy url |
62 |
URL of the login page. |
63 |
.It Sy delay1 |
64 |
Delay after entering URL, seconds: 0-9. |
65 |
.It Sy add_char1 |
66 |
Additional character before username: 1 for TAB, 0 to clear. |
67 |
.It Sy username |
68 |
Username to login. |
69 |
.It Sy add_char2 |
70 |
Additional character after username: 1 for TAB, 2 for RETURN. |
71 |
.It Sy delay2 |
72 |
Delay after entering username, seconds: 0-9. |
73 |
.It Sy password |
74 |
Password to login. |
75 |
.It Sy add_char3 |
76 |
Additional character after password: 1 for TAB, 2 for RETURN. |
77 |
.It Sy delay3 |
78 |
Delay after entering password, seconds: 0-9. |
79 |
.It Sy add_char4 |
80 |
Additional character before OTP: 1 for TAB, 2 for RETURN. |
81 |
.It Sy 2fa |
82 |
Type of two factor authentication: g for Google Authenticator, y - Yubico OTP, u - U2F. |
83 |
.It Sy totpkey |
84 |
Google Authenticator key. |
85 |
.It Sy add_char5 |
86 |
Additional character after OTP: 1 for TAB, 2 for RETURN. |
87 |
.El |
88 |
.It Ar value |
89 |
Value to set, see accepted values in each parameter type description above. |
90 |
.El |
91 |
.It Xo |
92 |
.Cm wipeslot |
93 |
.Ar slot_id |
94 |
.Xc |
95 |
.Pp |
96 |
Erases all the data (URL/username/password/label/etc.) of the slot with provided |
97 |
.Ar slot_id |
98 |
(1a-6b). |
99 |
.It Xo |
100 |
.Cm setkey |
101 |
.Ar key_slot |
102 |
.Ar key_type |
103 |
.Xc |
104 |
.Pp |
105 |
Sets custom key of provided |
106 |
.Ar key_type |
107 |
to the |
108 |
.Ar key_slot . |
109 |
.It Xo |
110 |
.Cm wipekey |
111 |
.Ar key_slot |
112 |
.Xc |
113 |
.Pp |
114 |
Wipes custom key from the provided |
115 |
.Ar key_slot . |
116 |
.It Xo |
117 |
.Cm idletimeout |
118 |
.Ar timeout |
119 |
.Xc |
120 |
.Pp |
121 |
Sets the OnlyKey auto-lock time value to |
122 |
.Ar timout |
123 |
minutes: 1-255; default is 30; 0 to disable. |
124 |
.It Xo |
125 |
.Cm wipemode |
126 |
.Ar mode_id |
127 |
.Xc |
128 |
.Pp |
129 |
Configures how the OnlyKey responds to a factory reset. Accepted |
130 |
.Ar mode_id |
131 |
values are: |
132 |
.Bl -tag -width indent |
133 |
.It 1 |
134 |
Only sensitive data will be wiped (default). |
135 |
.It 2 |
136 |
Entire OnlyKey device will be wiped, including firmware. Firmware must be |
137 |
reloaded after factory reset. This mode is recommended for plausible |
138 |
deniability users. WARNING: setting to this mode cannot be changed. |
139 |
.El |
140 |
.It Xo |
141 |
.Cm keylayout |
142 |
.Ar layout_id |
143 |
.Xc |
144 |
.Pp |
145 |
Configures the OnlyKey keyboard layout. Accepted |
146 |
.Ar layout_id |
147 |
values are: |
148 |
.Bl -tag -width indent |
149 |
.It 1 |
150 |
USA_ENGLISH (default). |
151 |
.It 2 |
152 |
CANADIAN_FRENCH. |
153 |
.It 3 |
154 |
CANADIAN_MULTILINGUAL. |
155 |
.It 4 |
156 |
DANISH. |
157 |
.It 5 |
158 |
FINNISH. |
159 |
.It 6 |
160 |
FRENCH. |
161 |
.It 7 |
162 |
FRENCH_BELGIAN. |
163 |
.It 8 |
164 |
FRENCH_SWISS. |
165 |
.It 9 |
166 |
GERMAN. |
167 |
.It 10 |
168 |
GERMAN_MAC. |
169 |
.It 11 |
170 |
GERMAN_SWISS. |
171 |
.It 12 |
172 |
ICELANDIC. |
173 |
.It 13 |
174 |
IRISH. |
175 |
.It 14 |
176 |
ITALIAN. |
177 |
.It 15 |
178 |
NORWEGIAN. |
179 |
.It 16 |
180 |
PORTUGUESE. |
181 |
.It 17 |
182 |
PORTUGUESE_BRAZILIAN. |
183 |
.It 18 |
184 |
SPANISH. |
185 |
.It 19 |
186 |
SPANISH_LATIN_AMERICA. |
187 |
.It 20 |
188 |
SWEDISH. |
189 |
.It 21 |
190 |
TURKISH. |
191 |
.It 22 |
192 |
UNITED_KINGDOM. |
193 |
.It 23 |
194 |
CZECH. |
195 |
.It 24 |
196 |
SERBIAN_LATIN_ONLY. |
197 |
.It 25 |
198 |
HUNGARIAN. |
199 |
.El |
200 |
.It Xo |
201 |
.Cm keytypespeed |
202 |
.Ar speed |
203 |
.Xc |
204 |
.Pp |
205 |
Sets type |
206 |
.Ar speed |
207 |
: 1 is slowest; 10 is fastest; 4 is default. |
208 |
.Sh BUGS |
209 |
Sometimes the |
210 |
.Nm |
211 |
doesn't recognize that PIN has been entered and the OnlyKey in unlocked |
212 |
successfully. |
213 |
In such case any command to the OnlyKey fails with an |
214 |
error 'OnlyKey is locked, enter PIN to unlock'. |
215 |
The workaround for such issue is to just retry one more time. |
216 |
.Sh AUTHORS |
217 |
This manual page is a |
218 |
.Xr mdoc 7 |
219 |
reimplementation of the OnlyKey PIP module's README.md, |
220 |
modified and customized for |
221 |
.Fx . The |
222 |
.Xr mdoc 7 |
223 |
implementation of this manual page was initially written by |
224 |
.An Dmytro Bilokha Aq dmytro@posteo.net . |
225 |
.Sh WWW |
226 |
Main OnlyKey product page: https://onlykey.io/ |
227 |
|
228 |
OnlyKey documentation site: https://docs.crp.to/ |
229 |
|
230 |
Source code: https://github.com/trustcrypto/python-onlykey |