Gpg: Difference between revisions

From DWIKI
mNo edit summary
mNo edit summary
Line 28: Line 28:
==Import private key==
==Import private key==
  gpg --import private.key
  gpg --import private.key
=FAQ=
==gpg: decryption failed: No secret key"
Means you're using gpg2 --use-agent, which is broken

Revision as of 13:19, 18 August 2016

GNU Privacy Guard

Links

Cheatsheet

What is my key ID?

gpg --list-keys you@example.com

The bit after the / in the pub line!


Generate key

gpg --gen-key 
 

Export public key

gpg --export me@example.com > public.key


Export private key

gpg --export-secret-key me@example.com > private.key


Import private key

gpg --import private.key


FAQ

==gpg: decryption failed: No secret key" Means you're using gpg2 --use-agent, which is broken