GnuPG
Memorandum
Generate
gpg --expert --full-gen-key
Add a sub key
gpg --edit-key NAME
addkey
Delete a sub key
gpg --edit-key NAME
key N
delkey
Change the key expiration time
gpg --edit-key NAME
key N
expire
Remarks
[C] certification
[E] encryption
[A] authentication
[S] signing
References
https://www.gnupg.org/documentation/manpage.html