LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-17-2003, 04:13 AM   #1
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
i lost my hd, can i recover pgp secret key?


hi..

as title says..

do i have to regenerate secret/public key?
or can i somehow recover old secret key?
thanks
 
Old 03-17-2003, 05:50 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
The main limit to recovery AFAIK is the amount of destructive disk activity on the disk/partition where the key was stored between the time of deletion and time of shutdown after you discovered your secret key was gone. Next to that, filesystem, cuz I dunno bout tools for Ext3, XFS etc, etc, only Ext2.

First thing you want to try is using the undelete function in "mc" aka Midnight Commander. Never forget to save to a separate partition, but preferably a separate disk altogether, or first "dd" the partition to a file (on a separate disk). If you haven't got "mc" maybe you've got "recover". If you *really* need this key back you can use TCT as a final choice, but be prepared for a lengthy learning and recovery process with minimal chances of retrieval, complete or not.

Here's some links:
Recover (app + info),
R-Linux (never tried this one),
Unrm (never tried this one),
TCT, The Coroners Toolkit.

Undelete HOWTO's:
Linux Partition HOWTO,
How to recover lost partitions,
Linux Ext2fs Undeletion mini-HOWTO,
Linux Partition Rescue mini-HOWTO.

Good luck.
 
Old 03-17-2003, 10:11 AM   #3
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Original Poster
Rep: Reputation: 30
assuming i can't recover it..

i need to regenerate new sec/pub pair and republish new public key?

i was asking if i can do something with my old pub key and passphrase to recover secret key..

thanks again
 
Old 03-18-2003, 04:35 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
i need to regenerate new sec/pub pair and republish new public key?
Yes. The only risk is your remote users don't know the "old" key wasn't revoked. Notify 'em.

i was asking if i can do something with my old pub key and passphrase to recover secret key..
No you wasn't. If you where, (not to sound harsh here) learn to rephrase your question until it comes out like a proper formatted one. Don't assume we know (or will try to know) what you're thinking.
If you where able to retrieve your secret key from the combination of your public key and the keyphrase this whole crypto thing would be worthless, wouldn't it?
 
Old 03-19-2003, 10:06 AM   #5
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Original Poster
Rep: Reputation: 30
yeah i thought so..
i just wanted to make sure..

thanks
 
  


Reply


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
GPG Data, Secret Key but no Public Key? Aeiri Linux - Software 5 07-20-2004 06:00 PM
No secret key found - KGPG? gitarted Linux - Newbie 1 09-09-2003 12:55 PM
How do I make a PGP key? Moses420ca Linux - Newbie 4 08-11-2003 09:28 AM
WTF is a pgp key? jon_k Linux - Software 7 07-26-2003 09:06 AM
PGP public key? mikeshn General 3 05-01-2002 11:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:07 AM.

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