equal
deleted
inserted
replaced
23 |
23 |
24 $ gpg --edit-key $KEYID trust |
24 $ gpg --edit-key $KEYID trust |
25 |
25 |
26 How export key? |
26 How export key? |
27 =============== |
27 =============== |
28 :: |
|
29 |
28 |
30 $ gpg -a --export $KEYID >$FILE.asc |
29 Export public key in binary (OpenGPG) form:: |
31 $ gpg --output $PRIVKEY.gpg --armor --export-secret-key $KEYID |
30 |
|
31 $ gpg --export $KEYID >$PUBKEY.asc |
|
32 $ gpg --output $PUBKEY.asc --export $KEYID |
|
33 |
|
34 Export public key in text form:: |
|
35 |
|
36 $ gpg -a --export $KEYID >$PUBKEY.asc |
|
37 $ gpg --armor --export $KEYID >$PUBKEY.asc |
|
38 |
|
39 Export private key (it still encrypted by pass-phrase):: |
|
40 |
|
41 $ gpg --output $PRIVKEY.gpg --export-secret-key $KEYID |
32 |
42 |
33 How create own PGP key? |
43 How create own PGP key? |
34 ======================= |
44 ======================= |
35 :: |
45 :: |
36 |
46 |
41 How import keys from file? |
51 How import keys from file? |
42 ========================== |
52 ========================== |
43 :: |
53 :: |
44 |
54 |
45 $ gpg --import $keyfile |
55 $ gpg --import $keyfile |
|
56 |
|
57 How to get public key from private without importing to local storage? |
|
58 ====================================================================== |
|
59 :: |
|
60 |
|
61 tmp=$(mktemp -d) |
|
62 gpg --homedir $tmp --import $SECKEY |
|
63 gpg --homedir $tmp --export $ID > $PUBKEY |
|
64 rm -rf $tmp |
|
65 |
|
66 .. |
|
67 |
|
68 http://stackoverflow.com/questions/7661500/how-to-get-public-key-from-private-in-gpg-without-using-local-storage-under |
46 |
69 |
47 How submit public key to key server? |
70 How submit public key to key server? |
48 ==================================== |
71 ==================================== |
49 :: |
72 :: |
50 |
73 |