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