Update usage.md

This commit is contained in:
Pol Henarejos
2023-09-05 19:45:51 +02:00
committed by GitHub
parent ee442ac084
commit 7506ccd263

View File

@@ -30,7 +30,7 @@ PIN=648219
## Initialization
The first step is to initialize the HSM. To do so, use the `pico-hsm-tool.py` in `tools` folder:
```
$ python3 pico-hsm-tool.py initialize --so-pin 3537363231383830 --pin 648219
$ python3 tools/pico-hsm-tool.py --pin 648219 initialize --so-pin 57621880
```
The PIN number is used to manage all private keys in the device. It supports three attemps. After the third PIN failure, it gets blocked.
The PIN accepts from 6 to 16 characters.
@@ -51,7 +51,7 @@ $ pkcs11-tool --login --pin 648219 --change-pin --new-pin 123456
To unblock the PIN:
```
$ pkcs11-tool --login --login-type so --so-pin=3537363231383830 --init-pin --new-pin=648219
$ pkcs11-tool --login --login-type so --so-pin 3537363231383830 --init-pin --new-pin 648219
```
## Keypair generation