Update 'pkcs11-tools.md'
This commit is contained in:
@@ -34,16 +34,31 @@ List certificates:
|
|||||||
$ pkcs11-tool --list-objects --type cert
|
$ pkcs11-tool --list-objects --type cert
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Read certificate:
|
||||||
|
```shell
|
||||||
|
$ pkcs11-tool --read-object --id $CERT_ID --type cert --output-file cert.der
|
||||||
|
```
|
||||||
|
|
||||||
List public keys:
|
List public keys:
|
||||||
```shell
|
```shell
|
||||||
$ pkcs11-tool --list-objects --type pubkey
|
$ pkcs11-tool --list-objects --type pubkey
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Read public key:
|
||||||
|
```shell
|
||||||
|
$ pkcs11-tool --read-object --id $CERT_ID --type pubkey --output-file pubkey.der
|
||||||
|
```
|
||||||
|
|
||||||
List private keys:
|
List private keys:
|
||||||
```shell
|
```shell
|
||||||
$ pkcs11-tool --login --list-objects --type privkey
|
$ pkcs11-tool --login --list-objects --type privkey
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Sign a file:
|
||||||
|
```shell
|
||||||
|
$ pkcs11-tool --id 02 -s -m ECDSA --input-file FILE --output-file FILE.sig
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
# `p11tool`
|
# `p11tool`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user