content: gpg-cheatsheet: Add instructions too also list expired subkeys

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2023-09-21 19:22:58 +02:00
parent 8957458e81
commit 25ce4282b5
Signed by: c8h4
GPG key ID: 73D5E7FDEE3DE49A

View file

@ -3,12 +3,18 @@ title: gpg cheatsheet
date: 2023-04-21T16:40:56+02:00
---
### List secret key with all subkeys:
### List secret key with its subkeys:
```shell {lineanchors=list}
$ gpg --list-secret-keys --keyid-format long
```
### List secret key with all (including expired) subkeys:
```shell {lineanchors=list}
$ gpg --list-secret-keys --keyid-format long --list-options show-unusable-subkeys
```
### Add a new subkey:
```shell {lineanchors=add}