How delete key?
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 05 Oct 2011 16:36:58 +0300
changeset 1018 3bed672ff6b9
parent 1017 4d55773cff4a
child 1019 6b9436fefab8
How delete key?
pgp.rst
--- a/pgp.rst	Wed Oct 05 14:58:30 2011 +0300
+++ b/pgp.rst	Wed Oct 05 16:36:58 2011 +0300
@@ -15,6 +15,7 @@
 * How export key?
 
   $ gpg -a --export $KEYID >$FILE.asc
+  $ gpg --output $PRIVKEY.gpg --armor --export-secret-key $KEYID
 
 * How create own PGP key?
 
@@ -30,12 +31,22 @@
 
   $ gpg --keyserver pgp.mit.edu --send-key $KEYID
 
-* How keys in local db.
+* What keys in local db?
 
   $ gpg -list-keys
   $ gpg -list-keys $KEYID
   $ gpg -list-keys $EMAIL
 
+  $ gpg --list-secret-keys
+
+* How delete key?
+
+  $ gpg --delete-key $KEYID
+  $ gpg --delete-key $USER
+  $ gpg --delete-key $EMAIL
+
+  $ gpg --delete-secret-key $KEYID
+
 * How sign file?
 
 To sign with first key