Home Holidays Blog About

This is a cheatsheet for some of the most important (to me) gpg commands.

Tools

https://developers.yubico.com/Software_Projects/YubiKey_Device_Configuration/

List connected YubiKeys

ykman list

Listing the keys on the smartcard

gpg --card-edit

Encryption (asymmetric)

Encrypt

gpg --output doc.gpg --encrypt --recipient stefan.weisser@googlemail.com doc.txt

Decrypt

gpg --output doc.txt2 --decrypt doc.gpg

Encryption (symmetric)

Encrypt

gpg --output doc.gpg --symmetric doc.txt

Decrypt

gpg --output doc.txt2 --decrypt doc.gpg

YubiHSM

PKCS#11

OATH

HOTP TOTP

OTP

Requires YubiCloud to verify