Posted on

by

in

,

Gnu pg

GNU pg

Key erstellen:

gpg --gen-key

Keys anzeigen:

gpg --list-keys
gpg -k

z.B. Tar

tar -cjp /var/www/html | gpg -z 0 --encrypt -r ABCDEFGausListKey > /verzeichnis/html.tgz.gpg

Schlüssel exportieren

gpg -a --output gpg-key-Name.asc --export 
gpg -a --output gpg-key-Name.asc --export-secret-keys 

Schlüssel importieren

gpg --import /tmp/gpg-key-Name.asc 

Zugriff unter Windows:
z.B. via https://gpg4win.de

 

Einen bestehenden Key trusten:

alice% gpg --edit-key blake

pub  1024D/8B927C8A  created: 1999-07-02 expires: never      trust: q/f
sub  1024g/C19EA233  created: 1999-07-02 expires: never     
(1)  Blake (Executioner) <blake@cyb.org>

Command> trust
pub  1024D/8B927C8A  created: 1999-07-02 expires: never      trust: q/f
sub  1024g/C19EA233  created: 1999-07-02 expires: never     
(1)  Blake (Executioner) <blake@cyb.org>

Please decide how far you trust this user to correctly
verify other users' keys (by looking at passports,
checking fingerprints from different sources...)?

 1 = Don't know
 2 = I do NOT trust
 3 = I trust marginally
 4 = I trust fully
 s = please show me more information
 m = back to the main menu

Your decision? 3
                
pub  1024D/8B927C8A  created: 1999-07-02 expires: never      trust: m/f
sub  1024g/C19EA233  created: 1999-07-02 expires: never     
(1)  Blake (Executioner) <blake@cyb.org>

Command> quit