Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Security
Reload this Page GnuPG: I want my private key!
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Security Discussion about keeping your machines secure, and the crackers out.

Reply
 
Thread Tools Display Modes
Old 07-17-2007   #1 (permalink)
chrishoeppner
Just Joined!
 
Join Date: Jun 2007
Posts: 2
GnuPG: I want my private key!

Hi folks!

I've been reading lately about GnuPG and how I can use it to sign and encrypt data. I know the importance of my passphrase, and that I should not forget it. Ever. That's okay. But what does happen if my box crashes? Can I get my private key back? I've read a lot about exporting my public key and publishing it somewhere. It wouldn't be a pain to get it back after all. Everyone *should* have a copy.

So, is there a way I can "store away" my private key in a way I could later use it if necesary? Is there some sort of --export-private-key I might have missed? Or should I just take all my files in ~/.gnupg and store them appart?

Thanks everyone for wasting your time with my newbie problems
chrishoeppner is offline   Reply With Quote
Old 07-17-2007   #2 (permalink)
kakariko81280
Linux Enthusiast
 
Join Date: Apr 2004
Location: UK
Posts: 542
Code:
man gpg
The man page turns up --export-secret-keys

Code:
gpg --export-secret-keys > secret.keys
Will export your secret keys to a file. This can be backed up and re-imported later.

Let us know how you get on,

Chris...
__________________
DRM keeps an honest user loyal
kakariko81280 is offline   Reply With Quote
Old 07-17-2007   #3 (permalink)
anomie
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,699
Quote:
Originally Posted by chrishoeppner View Post
So, is there a way I can "store away" my private key in a way I could later use it if necesary? Is there some sort of --export-private-key I might have missed? Or should I just take all my files in ~/.gnupg and store them appart?
You can do either (export the private key or back up ~/.gnupg).

I keep a backup of my private keys, public keys, and ownertrust db on a usb drive in a secure area.

Be really careful that you keep your private key in a safe place. Do not publish it or put it somewhere where others will have access to it.

As mentioned, manpages for gpg(1) and the following URL are your friends.

Documentation Sources - GnuPG.org
anomie is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Private IP addresses in iptables richgood2005 Linux Networking 9 03-20-2007 03:45 PM
Problems configuring a private network. Help please Paddyman Linux Networking 8 03-15-2007 09:02 PM
public and private ip in the same dns acquadispillifitti Servers 8 01-14-2007 05:30 PM
Resolve Linux IP address with C# windows program dghundt Linux Programming & Scripting 3 06-27-2006 07:22 PM
ssh from a private ip jkmartha Servers 1 05-31-2005 08:37 PM




All times are GMT. The time now is 07:15 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0