Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-02-2012, 10:37 AM   #1
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657
Beginner site/howto for gpg in Linux?

I've never used gpg. Im reaching out to the community to see if there is a good step-by-step beginners guide out there for .. Fedora i guess.

Things I would like explained is; Initial Setup of keys, how to use them in Evolution or gmail, how and what to back up?

Thanks all
Old 09-02-2012, 11:43 AM   #2
Registered: May 2008
Location: Toronto
Distribution: Centos && Debian
Posts: 347

Rep: Reputation: 34
Try this
Old 09-02-2012, 12:03 PM   #3
Registered: Apr 2006
Location: Nairobi
Distribution: CentOS
Posts: 78

Rep: Reputation: 21

Here's what you need to do to get started.

Generate your public/private key pair.

gpg --gen-key
Determine the key-id for your key-pair and use it to publish the public key to a keyserver.
gpg --send-keys DEADBEEF
If you would like to send an encrypted message to another user. You first need to import their public key into your keyring.

Import keys from a keyserver:
gpg --search-keys
Encrypting a file for user2:
gpg -ae secretfile.txt
This would output the encrypted file secretfile.txt.asc
Most email clients allow you to specify the key-id to use for encrypting and/or signing email. I also remember having tried a FireFox plugin(FireGPG) that worked with Gmail.

With regards to backup, I would suggest making a copy of both your public/private keys as follows:

gpg -a --export-secret-keys > secretkey.asc
gpg -a --export > publickey.asc
1 members found this post helpful.
Old 09-02-2012, 05:58 PM   #4
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 18,074

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664 - background + basic howto keys/certs - HOWTO - secure email
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
howto for this site River~~ LQ Suggestions & Feedback 7 12-28-2010 09:15 AM
GPG: Bad session key gpg between gpg on linux and gpg gui on windows XP konqi Linux - Software 1 07-21-2009 09:37 AM
howto accept a gpg key? twinkers Debian 6 10-21-2005 03:21 PM
Beginner HowTo:Changing the KDE Menu Icon SDmac SUSE / openSUSE 1 06-23-2005 12:12 PM
howto benchmark gpg in mac os x? carboncopy Other *NIX 2 04-08-2005 11:35 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration