Files
yubikey/pkcs15-tools.md
2024-08-24 01:55:10 +08:00

29 lines
772 B
Markdown

```shell
$ pkcs15-tool --list-certificates
Using reader with a card: Yubico YubiKey OTP+FIDO+CCID
X.509 Certificate [Certificate for Card Authentication]
Object Flags : [0x00]
Authority : no
Path :
ID : 04
Encoded serial : 02 09 0088891A87487694BA
$ pkcs15-tool --read-certificate 04
```
```shell
pkcs15-tool --list-public-keys
```
```shell
$ pkcs15-tool --read-ssh-key 01
Using reader with a card: Yubico YubiKey OTP+FIDO+CCID
ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBEJs6647ldeP1HDTh9d0Aj9kOS2AT/0qUmgQ633iVfAJen27f/Iczw7cfBUWmSR+TnfaQhCkp5PwN2dBb11pYg9La9klnJdJuzC4oiscnOa1vqEWnRoKIN5SKdUPJe29fw== PIV AUTH pubkey
```
<br>
# Reference
1. https://ubuntu.com/server/docs/smart-card-authentication