Skip to content

Commit d71e447

Browse files
committed
update
1 parent 0276f48 commit d71e447

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,33 +343,37 @@ Bye!
343343

344344
Keys/passwords are masked when entered and should only be set from interactive mode and not directly from terminal. Entering directly from terminal is not secure as command history is stored.
345345

346+
346347
**Setkey Examples**
347348

348349
To set key a device must first be put into config mode.
349350

351+
350352
**Set HMAC key 1 to a custom value**
351353

352354
$ onlykey-cli
353355

354-
OnlyKey> setkey 130 0
356+
OnlyKey> setkey 130 9
355357

356358
Type Control-T to toggle password visible.
357359
Password/Key: ****************************************
358360

359361

360-
*HMAC key must be 20 bytes, 130 is mapped to HMAC slot 1, 0 is HMAC type*
362+
*HMAC key must be 20 bytes, 130 is mapped to HMAC slot 1, 9 is HMAC type*
363+
361364

362365
**Set HMAC key 2 to a custom value**
363366

364367
$ onlykey-cli
365368

366-
OnlyKey> setkey 129 0
369+
OnlyKey> setkey 129 9
367370

368371
Type Control-T to toggle password visible.
369372
Password/Key: ****************************************
370373

371374

372-
*HMAC key must be 20 bytes, 129 is mapped to HMAC slot 2, 0 is HMAC type*
375+
*HMAC key must be 20 bytes, 129 is mapped to HMAC slot 2, 9 is HMAC type*
376+
373377

374378
**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))**
375379

@@ -385,12 +389,14 @@ Password/Key: *************************************************************
385389

386390
## Scripting Example
387391

392+
388393
**Set time on OnlyKey (required for TOTP)**
389394

390395
$ onlykey-cli settime
391396

392397
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)
393398

399+
394400
**Scripted provisioning of an OnlyKey slots and keys can be done by creating a script that sets multiple values on OnlyKey**
395401

396402
## Source

0 commit comments

Comments
 (0)