GNU Privacy Guard

From 6bit.ch wiki
Revision as of 17:12, 29 January 2026 by Xbl (talk | contribs) (→‎gpg)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

gpg

General

gpg --list-keys List public keys and associated information
gpg --list-secret-keys List secret keys and associated information

Generate

gpg --full-generate-key Generate a new key pair

View

gpg <filename.asc> View key file contents

Export/Import

gpg --export-secret-keys -a <keyid> > <filename.asc> Export private gpg key
gpg --export -a <keyid> > <filename.asc> Export public gpg key
gpg --import <filename.asc> Import private gpg key
gpg --import <filename.asc> Import public gpg key