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-- |
899
7b4265c8d324
Set fill-column as directory local var.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
859
diff
changeset
|
1 |
-*- mode: outline; coding: utf-8; -*- |
9 | 2 |
|
3 |
* What preffered client? |
|
4 |
||
5 |
GNU gpg. |
|
6 |
||
7 |
* How import keys from key-server? |
|
8 |
||
1016 | 9 |
$ gpg --keyserver pgp.mit.edu --recv-keys $KEYID |
10 |
||
1017 | 11 |
* How mark key as trusted? |
12 |
||
13 |
$ gpg --edit-key $KEYID trust |
|
14 |
||
1016 | 15 |
* How export key? |
16 |
||
17 |
$ gpg -a --export $KEYID >$FILE.asc |
|
1018 | 18 |
$ gpg --output $PRIVKEY.gpg --armor --export-secret-key $KEYID |
859 | 19 |
|
20 |
* How create own PGP key? |
|
21 |
||
22 |
$ gpg --gen-key # answer the question |
|
23 |
... |
|
24 |
$ gpg -o $keyfile --export-secret-keys $NAME |
|
25 |
||
26 |
* How import keys from file? |
|
27 |
||
28 |
$ gpg --import $keyfile |
|
29 |
||
30 |
* How submit public key to key server? |
|
31 |
||
1016 | 32 |
$ gpg --keyserver pgp.mit.edu --send-key $KEYID |
859 | 33 |
|
1018 | 34 |
* What keys in local db? |
859 | 35 |
|
1017 | 36 |
$ gpg -list-keys |
37 |
$ gpg -list-keys $KEYID |
|
38 |
$ gpg -list-keys $EMAIL |
|
859 | 39 |
|
1018 | 40 |
$ gpg --list-secret-keys |
41 |
||
42 |
* How delete key? |
|
43 |
||
44 |
$ gpg --delete-key $KEYID |
|
45 |
$ gpg --delete-key $USER |
|
46 |
$ gpg --delete-key $EMAIL |
|
47 |
||
48 |
$ gpg --delete-secret-key $KEYID |
|
49 |
||
859 | 50 |
* How sign file? |
51 |
||
52 |
To sign with first key |
|
53 |
||
54 |
$ gpg -o $file.sig --sign $file |
|
55 |
$ gpg --default-key $NAME -o $file.sig --sign $file |
|
56 |
$ gpg -u ${USER_NAME} -o $file.sig --sign $file |
|
57 |
||
58 |
* How verify signature? |
|
59 |
||
60 |
$ gpg --verify $file.sig |
|
61 |