Skip to content

Commit 0276f48

Browse files
committed
update
1 parent 5b93359 commit 0276f48

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

README.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -347,52 +347,51 @@ Keys/passwords are masked when entered and should only be set from interactive m
347347

348348
To set key a device must first be put into config mode.
349349

350-
- Set HMAC key 1 to a custom value
351-
```
350+
**Set HMAC key 1 to a custom value**
351+
352352
$ onlykey-cli
353353

354354
OnlyKey> setkey 130 0
355355

356356
Type Control-T to toggle password visible.
357357
Password/Key: ****************************************
358-
```
358+
359359

360360
*HMAC key must be 20 bytes, 130 is mapped to HMAC slot 1, 0 is HMAC type*
361361

362-
- Set HMAC key 2 to a custom value
363-
```
362+
**Set HMAC key 2 to a custom value**
363+
364364
$ onlykey-cli
365365

366366
OnlyKey> setkey 129 0
367367

368368
Type Control-T to toggle password visible.
369369
Password/Key: ****************************************
370-
```
370+
371371

372372
*HMAC key must be 20 bytes, 129 is mapped to HMAC slot 2, 0 is HMAC type*
373373

374-
- Set ECC key in slot 101 to a custom value (Slots 101-116 are available for ECC keys. Supported ECC curves X25519(1), NIST256P1(2), SECP256K1(3))
375-
```
374+
**Set ECC key in slot 101 to a custom value (Slots 101-116 are available for ECC keys. Supported ECC curves X25519(1), NIST256P1(2), SECP256K1(3))**
375+
376376
$ onlykey-cli
377377

378378
OnlyKey> setkey 101 1
379379

380380
Type Control-T to toggle password visible.
381381
Password/Key: *************************************************************
382-
```
382+
383383

384384
*ECC key must be 32 bytes, 1 is X25519 type*
385385

386386
## Scripting Example
387387

388-
- Set time on OnlyKey (required for TOTP)
388+
**Set time on OnlyKey (required for TOTP)**
389389

390-
```
391390
$ onlykey-cli settime
392-
```
393-
This can be added to scripts such as the UDEV rule to automatically set time when device is inserted into USB port. See example here https://raw.githubusercontent.com/trustcrypto/trustcrypto.github.io/master/49-onlykey.rules
394391

395-
- Scripted provisioning of an OnlyKey slots and keys can be done by creating a script that sets multiple values on OnlyKey
392+
This can be added to scripts such as the UDEV rule to automatically set time when device is inserted into USB port. See example [here](https://raw.githubusercontent.com/trustcrypto/trustcrypto.github.io/master/49-onlykey.rules)
393+
394+
**Scripted provisioning of an OnlyKey slots and keys can be done by creating a script that sets multiple values on OnlyKey**
396395

397396
## Source
398397

0 commit comments

Comments
 (0)