Codigo:
- $ gpg --gen-key
Exemplo:
Codigo:
- $ gpg --keyserver <server> --search-keys <names>
Exemplo:
$ gpg --keyserver pgp.dei.uc.pt --search-keys granjal gpg: searching for "granjal" from hkp server pgp.dei.uc.pt (1) Jorge Granjal1024 bit key F0892CA4, created: 2005-03-09 (2) Jorge Granjal Jorge Granjal 1024 bit key EEF1BE62, created: 2003-09-27 Keys 1-2 of 2 for "granjal". Enter number(s), N)ext, or Q)uit > 1 gpg: requesting key F0892CA4 from hkp server pgp.dei.uc.pt gpg: key F0892CA4: public key "Jorge Granjal " imported gpg: Total number processed: 1 gpg: imported: 1
Codigo:
- $ gpg --edit-key <uid>
- Command> adduid
- Real name: <name>
- Email address: <email>
- $ gpg --keyserver <server> --send-keys <key-id>
Exemplo:
$ gpg --edit-key jemart Command> adduid Real name: Jose Eduardo Martins Email address: jemart@student.ff.uc.pt Comment: You selected this USER-ID: "Jose Eduardo Martins" Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O You need a passphrase to unlock the secret key for user: "Jose Eduardo Martins " 1024-bit DSA key, ID D3BB9CCA, created 2004-04-18 pub 1024D/D3BB9CCA created: 2004-04-18 expires: never usage: CS trust: ultimate validity: ultimate sub 1024g/A493892A created: 2004-04-18 expires: never usage: E [ultimate] (1) Jose Eduardo Martins [ultimate] (2) Jose Eduardo Martins [ultimate] (3) Jose Eduardo Martins [ultimate] (4) Jose Eduardo Martins [ unknown] (5). Jose Eduardo Martins Command> quit Save changes? (y/N) y $ gpg --keyserver pgp.dei.uc.pt --send-keys D3BB9CCA