pgp.rst
changeset 859 c8a5bbbc27c6
parent 735 5c437e2d5fe1
child 899 7b4265c8d324
--- a/pgp.rst	Wed Mar 09 10:22:04 2011 +0200
+++ b/pgp.rst	Wed Mar 09 23:07:55 2011 +0200
@@ -7,3 +7,34 @@
 * How import keys from key-server?
 
   $  gpg --keyserver pgp.mit.edu --recv-keys 0x353E25BC
+
+* 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 ${key_ID}
+
+* How keys in local db.
+
+  $ gpg -list-keys ${user_ID}
+
+* 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
+