Gpg: Difference between revisions

From DWIKI
mNo edit summary
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
GNU Privacy Guard
GNU Privacy Guard


=Links=
*https://www.gnupg.org/ Homepage]
*[http://www.dewinter.com/gnupg_howto/english/GPGMiniHowto.html GPG HOWTO]
*[http://irtfweb.ifa.hawaii.edu/~lockhart/gpg/gpg-cs.html GPG Cheat sheet]
*https://www.phildev.net/pgp/gpg_moving_keys.html


=Cheatsheet=


==What is my key ID?==
= Links =
 
*[https://www.gnupg.org/ https://www.gnupg.org/] Homepage]
*[http://www.dewinter.com/gnupg_howto/english/GPGMiniHowto.html GPG HOWTO]
*[http://irtfweb.ifa.hawaii.edu/~lockhart/gpg/gpg-cs.html GPG Cheat sheet]
*[https://devhints.io/gnupg GnuPG cheatsheet]
*[https://www.phildev.net/pgp/gpg_moving_keys.html https://www.phildev.net/pgp/gpg_moving_keys.html]
*[https://support.mozilla.org/en-US/kb/digitally-signing-and-encrypting-messages Thunderbird and GPG]
 
= Cheatsheet =
 
== What is my key ID? ==
 
  gpg --list-keys you@example.com
  gpg --list-keys you@example.com


The bit after the / in the pub line!
The bit after the / in the pub line!


 
== Generate key ==


==Generate key==
  gpg --gen-key  
  gpg --gen-key  
    
    
==Export public key==
 
== Export public key ==
 
  gpg --export me@example.com > public.key
  gpg --export me@example.com > public.key


 
== Export private key ==


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


 
== Import private key ==


==Import private key==
  gpg --import private.key
  gpg --import private.key


== Renewing subkey ==
[https://sites.lafayette.edu/newquisk/archives/504 https://sites.lafayette.edu/newquisk/archives/504]
==Changing expiration date==
gpg --edit-key me@example.com
gpg> expire
= FAQ =
== gpg: decryption failed: No secret key" ==


=FAQ=
==gpg: decryption failed: No secret key"==
Means you're using gpg2 --use-agent, which is broken
Means you're using gpg2 --use-agent, which is broken
 
== gpg: keyserver receive failed: No name ==
probably means the key was nog found
== gpg: keyserver send failed: No name ==
Try another keyserver

Revision as of 10:47, 7 October 2021

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

Renewing subkey

https://sites.lafayette.edu/newquisk/archives/504

Changing expiration date

gpg --edit-key me@example.com
gpg> expire


FAQ

gpg: decryption failed: No secret key"

Means you're using gpg2 --use-agent, which is broken

 

gpg: keyserver receive failed: No name

probably means the key was nog found

gpg: keyserver send failed: No name

Try another keyserver