pgp.rst
changeset 1796 c15cf5f1132c
parent 1792 76efdcf0aa3e
child 1797 912e278e4896
equal deleted inserted replaced
1795:eac9b7067c06 1796:c15cf5f1132c
    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