author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Tue, 19 Sep 2017 19:42:14 +0300 | |
changeset 2182 | c422c3f118bd |
parent 2042 | 6390a62f7345 |
child 2230 | 9e6ad6607a9e |
permissions | -rw-r--r-- |
1792
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
1 |
.. -*- coding: utf-8; -*- |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
2 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
3 |
========== |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
4 |
PGP/GPG. |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
5 |
========== |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
6 |
.. contents:: |
1905
fba288d59662
Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1797
diff
changeset
|
7 |
:local: |
1792
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
8 |
|
2040
850213dfd351
How to backup private key?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
9 |
Documentation |
850213dfd351
How to backup private key?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
10 |
============= |
850213dfd351
How to backup private key?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
11 |
|
850213dfd351
How to backup private key?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
12 |
https://wiki.archlinux.org/index.php/GnuPG |
850213dfd351
How to backup private key?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
13 |
ArchLinux wiki. |
2041
c9c950bc5487
The Keysigning Party HOWTO.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2040
diff
changeset
|
14 |
http://www.cryptnet.net/fdp/crypto/keysigning_party/en/keysigning_party.html |
c9c950bc5487
The Keysigning Party HOWTO.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2040
diff
changeset
|
15 |
The Keysigning Party HOWTO. |
2040
850213dfd351
How to backup private key?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
16 |
|
1792
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
17 |
What preffered client? |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
18 |
====================== |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
19 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
20 |
GNU gpg. |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
21 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
22 |
How import keys from key-server? |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
23 |
================================ |
2042
6390a62f7345
To check revocation statuses and receive new signatures.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2041
diff
changeset
|
24 |
|
6390a62f7345
To check revocation statuses and receive new signatures.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2041
diff
changeset
|
25 |
To import key with signatures:: |
1792
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
26 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
27 |
$ gpg --keyserver pgp.mit.edu --recv-keys $KEYID |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
28 |
|
2042
6390a62f7345
To check revocation statuses and receive new signatures.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2041
diff
changeset
|
29 |
To check revocation statuses and receive new signatures:: |
6390a62f7345
To check revocation statuses and receive new signatures.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2041
diff
changeset
|
30 |
|
6390a62f7345
To check revocation statuses and receive new signatures.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2041
diff
changeset
|
31 |
$ gpg --keyserver pgp.mit.edu --refresh-keys $KEYID |
6390a62f7345
To check revocation statuses and receive new signatures.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2041
diff
changeset
|
32 |
|
1792
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
33 |
How mark key as trusted? |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
34 |
======================== |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
35 |
:: |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
36 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
37 |
$ gpg --edit-key $KEYID trust |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
38 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
39 |
How export key? |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
40 |
=============== |
1796
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
41 |
|
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
42 |
Export public key in binary (OpenGPG) form:: |
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
43 |
|
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
44 |
$ gpg --export $KEYID >$PUBKEY.asc |
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
45 |
$ gpg --output $PUBKEY.asc --export $KEYID |
1792
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
46 |
|
1796
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
47 |
Export public key in text form:: |
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
48 |
|
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
49 |
$ gpg -a --export $KEYID >$PUBKEY.asc |
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
50 |
$ gpg --armor --export $KEYID >$PUBKEY.asc |
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
51 |
|
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
52 |
Export private key (it still encrypted by pass-phrase):: |
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
53 |
|
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
54 |
$ gpg --output $PRIVKEY.gpg --export-secret-key $KEYID |
1792
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
55 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
56 |
How create own PGP key? |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
57 |
======================= |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
58 |
:: |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
59 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
60 |
$ gpg --gen-key # answer the question |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
61 |
... |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
62 |
$ gpg -o $keyfile --export-secret-keys $NAME |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
63 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
64 |
How import keys from file? |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
65 |
========================== |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
66 |
:: |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
67 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
68 |
$ gpg --import $keyfile |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
69 |
|
1796
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
70 |
How to get public key from private without importing to local storage? |
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
71 |
====================================================================== |
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
72 |
:: |
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
73 |
|
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
74 |
tmp=$(mktemp -d) |
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
75 |
gpg --homedir $tmp --import $SECKEY |
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
76 |
gpg --homedir $tmp --export $ID > $PUBKEY |
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
77 |
rm -rf $tmp |
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
78 |
|
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
79 |
.. |
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
80 |
|
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
81 |
http://stackoverflow.com/questions/7661500/how-to-get-public-key-from-private-in-gpg-without-using-local-storage-under |
c15cf5f1132c
How to get public key from private without importing to local storage?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1792
diff
changeset
|
82 |
|
1792
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
83 |
How submit public key to key server? |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
84 |
==================================== |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
85 |
:: |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
86 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
87 |
$ gpg --keyserver pgp.mit.edu --send-key $KEYID |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
88 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
89 |
What keys in local db? |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
90 |
====================== |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
91 |
:: |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
92 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
93 |
$ gpg --list-keys |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
94 |
$ gpg --list-keys $KEYID |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
95 |
$ gpg --list-keys $EMAIL |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
96 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
97 |
$ gpg --list-secret-keys |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
98 |
|
1797
912e278e4896
Making revocation certificate.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1796
diff
changeset
|
99 |
Making revocation certificate. |
912e278e4896
Making revocation certificate.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1796
diff
changeset
|
100 |
============================== |
912e278e4896
Making revocation certificate.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1796
diff
changeset
|
101 |
:: |
912e278e4896
Making revocation certificate.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1796
diff
changeset
|
102 |
|
912e278e4896
Making revocation certificate.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1796
diff
changeset
|
103 |
$ gpg --armor --output $KEYID.rev --gen-revoke $KEYID |
912e278e4896
Making revocation certificate.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1796
diff
changeset
|
104 |
|
1792
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
105 |
How delete key? |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
106 |
=============== |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
107 |
:: |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
108 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
109 |
$ gpg --delete-key $KEYID |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
110 |
$ gpg --delete-key $USER |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
111 |
$ gpg --delete-key $EMAIL |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
112 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
113 |
$ gpg --delete-secret-key $KEYID |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
114 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
115 |
Dump content of key or signture. |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
116 |
================================ |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
117 |
:: |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
118 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
119 |
$ gpg --list-packets $FILE.sig |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
120 |
$ gpg --list-packets $FILE.key |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
121 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
122 |
$ sudo apt-get install pgpdump |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
123 |
$ pgpdump $FILE.sig |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
124 |
$ pgpdump $FILE.key |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
125 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
126 |
How sign file? |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
127 |
============== |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
128 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
129 |
To sign with first key:: |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
130 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
131 |
$ gpg -o $file.sig --sign $file |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
132 |
$ gpg --default-key $NAME -o $file.sig --sign $file |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
133 |
$ gpg -u ${USER_NAME} -o $file.sig --sign $file |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
134 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
135 |
How verify signature? |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
136 |
===================== |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
137 |
:: |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
138 |
|
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
139 |
$ gpg --verify $file.sig |
76efdcf0aa3e
Dump content of key or signture.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
140 |
|
2040
850213dfd351
How to backup private key?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
141 |
How to backup private key? |
850213dfd351
How to backup private key?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
142 |
========================== |
850213dfd351
How to backup private key?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
143 |
|
850213dfd351
How to backup private key?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
144 |
Make a copy:: |
850213dfd351
How to backup private key?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
145 |
|
850213dfd351
How to backup private key?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
146 |
$ gpg --export-secret-keys --armor $KEYID > privkey.asc |
850213dfd351
How to backup private key?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
147 |
|
850213dfd351
How to backup private key?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
148 |
Restore from copy:: |
850213dfd351
How to backup private key?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
149 |
|
850213dfd351
How to backup private key?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
150 |
$ gpg --allow-secret-key-import --import privkey.asc |
850213dfd351
How to backup private key?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
151 |