pgp.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Wed, 05 Aug 2015 23:55:34 +0300
changeset 1729 22ffd80639c0
parent 1018 3bed672ff6b9
child 1790 987efe85d42c
permissions -rw-r--r--
Make centered content design with adoption for mobile devices. Highlight TOC.

-*- mode: outline; coding: utf-8; -*-

* What preffered client?

GNU gpg.

* How import keys from key-server?

  $  gpg --keyserver pgp.mit.edu --recv-keys $KEYID

* How mark key as trusted?

  $ gpg --edit-key $KEYID trust

* How export key?

  $ gpg -a --export $KEYID >$FILE.asc
  $ gpg --output $PRIVKEY.gpg --armor --export-secret-key $KEYID

* How create own PGP key?

  $ gpg --gen-key   # answer the question
...
  $ gpg -o $keyfile --export-secret-keys $NAME

* How import keys from file?

  $ gpg --import $keyfile

* How submit public key to key server?

  $ gpg --keyserver pgp.mit.edu --send-key $KEYID

* What keys in local db?

  $ gpg -list-keys
  $ gpg -list-keys $KEYID
  $ gpg -list-keys $EMAIL

  $ gpg --list-secret-keys

* How delete key?

  $ gpg --delete-key $KEYID
  $ gpg --delete-key $USER
  $ gpg --delete-key $EMAIL

  $ gpg --delete-secret-key $KEYID

* How sign file?

To sign with first key

  $ gpg -o $file.sig --sign $file
  $ gpg --default-key $NAME -o $file.sig --sign $file
  $ gpg -u ${USER_NAME} -o $file.sig --sign $file

* How verify signature?

  $ gpg --verify $file.sig