mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-01-17 01:18:06 +00:00
Update usage.md
This commit is contained in:
parent
a4baa99fce
commit
1f7e7aa14c
1 changed files with 14 additions and 0 deletions
14
doc/usage.md
14
doc/usage.md
|
|
@ -175,6 +175,20 @@ Certificate:
|
|||
0b:08
|
||||
```
|
||||
|
||||
The resulting file `cert.pem` contains the signed certificate in PEM format. Convert it into DER format and load it into the Pico HSM:
|
||||
|
||||
```
|
||||
$ openssl x509 -in cert.pem -out cert.der -outform der
|
||||
$ pkcs11-tool -l --pin 648219 --write-object cert.der --type cert --id 1
|
||||
Using slot 0 with a present token (0x0)
|
||||
Created certificate:
|
||||
Certificate Object; type = X.509 cert
|
||||
label: Certificate
|
||||
subject: DN: C=ES, ST=Some-State, O=Internet Widgits Pty Ltd, CN=patata.com
|
||||
ID: 01
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue