Update 'pkcs15-tools.md'

This commit is contained in:
2024-08-24 01:58:25 +08:00
parent 7a3ab1373e
commit 8f3c4ceac5

View File

@@ -8,8 +8,6 @@ X.509 Certificate [Certificate for Card Authentication]
Path : Path :
ID : 04 ID : 04
Encoded serial : 02 09 0088891A87487694BA Encoded serial : 02 09 0088891A87487694BA
$ pkcs15-tool --read-certificate 04
``` ```
```shell ```shell
@@ -19,7 +17,24 @@ pkcs15-tool --list-public-keys
```shell ```shell
$ pkcs15-tool --read-ssh-key 01 $ pkcs15-tool --read-ssh-key 01
Using reader with a card: Yubico YubiKey OTP+FIDO+CCID Using reader with a card: Yubico YubiKey OTP+FIDO+CCID
ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBEJs6647ldeP1HDTh9d0Aj9kOS2AT/0qUmgQ633iVfAJen27f/Iczw7cfBUWmSR+TnfaQhCkp5PwN2dBb11pYg9La9klnJdJuzC4oiscnOa1vqEWnRoKIN5SKdUPJe29fw== PIV AUTH pubkey ecdsa-sha2-nistp384 AAAAE2Vj.... PIV AUTH pubkey
```
```shell
$ pkcs15-tool --read-certificate 01
Using reader with a card: Yubico YubiKey OTP+FIDO+CCID
-----BEGIN CERTIFICATE-----
....
-----END CERTIFICATE-----
```
```shell
$ pkcs15-tool --read-public-key 02
Using reader with a card: Yubico YubiKey OTP+FIDO+CCID
-----BEGIN PUBLIC KEY-----
....
-----END PUBLIC KEY-----
``` ```
<br> <br>