LinuxQuestions.org
Review your favorite Linux distribution.
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 05-03-2007, 05:49 AM   #1
aeby
Member
 
Registered: Mar 2007
Posts: 109

Rep: Reputation: 15
gpg encrytpion - importing public key problems


Hi,
i am using gpg to encrypt files, i am trying to import a public key from a mchine, i have copied the key pubkey.asc to the machine where i want to use it, but when i try to import it, it gives me the folloeing error.


gpg: key 3D3D4DBE was created 21990 seconds in the future (time warp or clock problem)
gpg: key 3D3D4DBE was created 21990 seconds in the future (time warp or clock problem)
gpg: key 3D3D4DBE was created 21990 seconds in the future (time warp or clock problem)
gpg: key 3D3D4DBE was created 21990 seconds in the future (time warp or clock problem)
gpg: key 3D3D4DBE: no valid user IDs
gpg: this may be caused by a missing self-signature
gpg: Total number processed: 1
gpg: w/o user IDs: 1


I have done the folloeing till now
gpg --gen-key
gpg --armor --export uid > test.asc
gpg --import test.asc
gpg --edit-key uid

but still nothing seems to work,
please can anyone tell me how to get around this,

Kind Regards
Aeby
 
Old 05-05-2007, 04:05 PM   #2
Fle><
Member
 
Registered: Dec 2003
Location: Vienna | Austria
Distribution: Gentoo
Posts: 52

Rep: Reputation: 15
Quote:
Originally Posted by aeby
gpg: key 3D3D4DBE was created 21990 seconds in the future (time warp or clock problem)
Maybe your systemclock is not set right!?

Quote:
Originally Posted by aeby
gpg: key 3D3D4DBE was created 21990 seconds in the future (time warp or clock problem)
gpg: key 3D3D4DBE: no valid user IDs
gpg: this may be caused by a missing self-signature
$ gpg --sign 3D3D4DBE

You should have read the messages before you post your question
 
Old 05-07-2007, 03:37 AM   #3
aeby
Member
 
Registered: Mar 2007
Posts: 109

Original Poster
Rep: Reputation: 15
Hi ,

I had already signed the keys,
when i give gpg --sign-keys keyid it gives me the following message.

gpg: checking the trustdb
gpg: checking at depth 0 signed=0 ot(-/q/n/m/f/u)=0/0/0/0/0/1
pub 1024D/2D139310 created: 2007-05-07 expires: never trust: u/u
sub 1024g/3C0404DB created: 2007-05-07 expires: never



Nothing to sign with key 2D139310
Key not changed so no update needed.

The machine from which i am trying to import the public key is running on gpg version 1.0.7 while the machine i am using is running gpg 1.4.7 .
Is it coz of the version that it is not able to import the public key from a lower version to higher version.???I tried importing a piblic key from 1.4.7 to 1.0.7 everything works fine.
is there any other thing i should do

Regards
 
Old 05-07-2007, 04:43 AM   #4
Fle><
Member
 
Registered: Dec 2003
Location: Vienna | Austria
Distribution: Gentoo
Posts: 52

Rep: Reputation: 15
What's about that?

Quote:
Originally Posted by Fle><
Maybe your systemclock is not set right!?


$ gpg --sign 3D3D4DBE

You should have read the messages before you post your question
 
Old 05-07-2007, 06:48 AM   #5
aeby
Member
 
Registered: Mar 2007
Posts: 109

Original Poster
Rep: Reputation: 15
hi,

i did the gpg --sign-key and it is giving me the message i poseted above that it is already signed and when i try importing it gives me the message cannot import due to missing self-signature

regards
 
Old 05-07-2007, 06:57 AM   #6
aeby
Member
 
Registered: Mar 2007
Posts: 109

Original Poster
Rep: Reputation: 15
Hi
I tried gpg --sign AB524125

You need a passphrase to unlock the secret key for
user: "arsha (test) <arshab@workforce.co.za>"
1024-bit DSA key, ID AB524125, created 2007-05-07

gpg: can't open AB524125: No such file or directory
gpg: signing failed: file open error

now what ?????
 
Old 05-07-2007, 11:11 AM   #7
Fle><
Member
 
Registered: Dec 2003
Location: Vienna | Austria
Distribution: Gentoo
Posts: 52

Rep: Reputation: 15
The key isn't in your keyring. (gpg -k)
The import has failed before.
 
Old 05-16-2007, 04:14 AM   #8
aeby
Member
 
Registered: Mar 2007
Posts: 109

Original Poster
Rep: Reputation: 15
Hi there
i am trying to encrypt using a key pair that i generated, i succesfuly imported the public key at the client.

i tried gpg -k and the key is in the key ring.

the output og gpg -k is

pub 1024D/EBE3DD37 2007-05-15 arsha (test public key) <arshab@workforce.co.za>
sub 1024g/B6196809 2007-05-15

but when i try to encrypt using the key in a client machine
it gives me the following:

gpg --output test.gpg --recipient arshab@workforce.co.za --encrypt test
gpg: B6196809: There is no indication that this key really belongs to the owner
1024g/B6196809 2007-05-15 "arsha (test public key) <arshab@workforce.co.za>"
Primary key fingerprint: A091 E5CC C00D 746F D1F8 705A 8D9F 85E4 EBE3 DD37
Subkey fingerprint: 650E F8A8 D21C B160 BD9F E206 6D22 3253 B619 6809

It is NOT certain that the key belongs to the person named
in the user ID. If you *really* know what you are doing,
you may answer the next question with yes

Use this key anyway?


i tried gpg -sign key id
but it says that the key is already signed.

i need to run this off a script please can you tell me how to encrypt without prompting for yes.
i also tried the option --yes which was supposed to answer for most of the questions but no luck

please can amyone tell me what is wrong

Thanks in advance
 
  


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
Revoking GPG key with only passphrase and public key djib Linux - Security 2 03-13-2007 04:20 AM
Error importing the GPG key for the freshrpms repository in FC5 squall1986 Fedora 1 11-17-2006 01:20 AM
Problem importing Mandrake Cooker public GPG key hazza Mandriva 2 07-26-2004 06:38 AM
GPG Data, Secret Key but no Public Key? Aeiri Linux - Software 5 07-20-2004 07:00 PM
issue importing RH GPG public key linux-singapore Linux - Software 7 12-18-2003 01:51 AM

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

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