LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-20-2004, 03:08 AM   #1
Aeiri
Member
 
Registered: Feb 2004
Posts: 307

Rep: Reputation: 30
GPG Data, Secret Key but no Public Key?


Well, I recently got f****d by formatting, but forgetting to copy the directory I moved everything into to save onto my pen drive, but I did manage to keep my encrypted data for GPG.

The problem is I only have the secret key for the data, and not my public key... is there an option to recreate the public key from the secret key, or a way to get it to decrypt the files without a public key? Or am I screwed yet again?

I REALLY need some of the data in these files, so any help would be greatly appreciated
 
Old 07-20-2004, 04:38 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
I'm having trouble understanding how you could still have the secret key but not the public key. What do you get if you open a terminal and issue the command: gpg --list-keys?
 
Old 07-20-2004, 09:09 AM   #3
Aeiri
Member
 
Registered: Feb 2004
Posts: 307

Original Poster
Rep: Reputation: 30
I formatted. I forgot to export my public key and only exported my secret key when backing stuff up. Make sense now?
 
Old 07-20-2004, 09:31 AM   #4
oot
Member
 
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240

Rep: Reputation: 30
You can generate a public key from a secret key, but not the other way around (so it sounds like you're in luck that you saved the right key).

To generate your public key in a text form suitable for sending to others, use:
gpg --armor --export <your email or gpg user name> >> <file to output the key to>

To generate your public key in binary from, use:
gpg --output <file to output the key to> --export <your email or gpg user name>
 
Old 07-20-2004, 05:29 PM   #5
Aeiri
Member
 
Registered: Feb 2004
Posts: 307

Original Poster
Rep: Reputation: 30
Quote:
gpg: WARNING: nothing exported
I've tried almost everything, but I can't get it to export the public key....

"gpg --list-secret-keys" has my secret key there, and "gpg --list-keys" has nothing, as I assumed...

Any other ideas?
 
Old 07-20-2004, 06:00 PM   #6
Aeiri
Member
 
Registered: Feb 2004
Posts: 307

Original Poster
Rep: Reputation: 30
HAHA!!! Got it.

The development version of GPG imports both secret and public keys when importing a secret key. I am able to decrypt my files now and everything is looking much much better
 
  


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: public key not found verbose Linux - Newbie 4 12-31-2009 03:00 PM
yum public gpg key?? Niflheim Fedora 1 03-28-2005 01:46 PM
YUM --import public.gpg.key Fredstar Linux - Newbie 8 03-25-2005 06:31 PM
Problem importing Mandrake Cooker public GPG key hazza Mandriva 2 07-26-2004 05:38 AM
issue importing RH GPG public key linux-singapore Linux - Software 7 12-18-2003 12:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:14 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