Difference between revisions of "GNU Privacy Guard"

From 6bit.ch wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
= gpg =
= gpg =


== General ==
<code>gpg --list-keys</code> List public keys and associated information</br>
<code>gpg --list-secret-keys</code> List secret keys and associated information</br>
<code>gpg --list-secret-keys</code> List secret keys and associated information</br>
== Generate ==
<code>gpg --full-generate-key</code> Generate a new key pair
== View ==
<code>gpg <filename.asc></code> View key file contents</br>


== Export/Import ==
== Export/Import ==

Latest revision as of 17:12, 29 January 2026

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