Creating a new GPG-Key

27.06.2007 at 10:51

Today i created a new gpg-key, here is a short description of this procedure, just in case i have to do it again.


gpg --gen-key

and answer the questions should be fairly straight forward. At the end your key-id which uniquely identifys your key will be printed. Use it to cerate a revoke certificate, just in case your key will be compromised.

gpg --output [email].revoke.asc --gen-revoke [key-id]

Then export your public key which you can distribute to your friends.

gpg --armor --output [email].pub.asc --export [key-id]

I would also advice you to export the private key and store it in a secure place.

gpg --armor --output [email].sec.asc --export-secret-key [key-id]

As a final step send your public to one of the many keyservers so others can fetch it and encrypt documents with it.

gpg --keyserver --send-key [key-id]

The keyserver are constantly synchronising under each other so after some time your key should be available to others. Do a quick search to check this.

gpg --keyserver --search-keys [email]


Comments (0)

There are currently no comments available