LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-03-2006, 02:37 PM   #76
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47

I make/created a file in my home folder for this key.

The name of the file is ' mandriva-free-2007-tyr-CD.x86_64.md5.asc.txt '

[root@c83-250-110-112 nissanka]# ls

mandriva-free-2007-tyr-CD.x86_64.md5.asc.txt

----------------------------------------------------


[root@c83-250-110-112 nissanka]# gpg --import 'mandriva-free-2007-tyr-CD.x86_64.md5.asc.txt'
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
[root@c83-250-110-112 nissanka]#

What is the problem?
 
Old 09-03-2006, 02:44 PM   #77
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Stephen
I didn't download from the site you mentioned. I downloaded from the following Swedish FTP site.

http://ftp.sunet.se/pub/Linux/distri...iso/x86_64/CD/

The file is the following one.

mandriva-free-2007-tyr-CD.x86_64.md5.asc 31-Aug-2006 20:13 454
 
Old 09-03-2006, 03:42 PM   #78
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
That file is only a "signed message". It's NOT a key file at all.



Cheers,
Tink
 
Old 09-03-2006, 03:43 PM   #79
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Gins
Stephen
I didn't download from the site you mentioned. I downloaded from the following Swedish FTP site.

http://ftp.sunet.se/pub/Linux/distri...iso/x86_64/CD/

The file is the following one.

mandriva-free-2007-tyr-CD.x86_64.md5.asc 31-Aug-2006 20:13 454
Apparently I misread the man page just use this to check the file.

Code:
>$ gpg --verify mandriva-free-2007-tyr-CD.i586.md5.asc
gpg: Signature made Wed 30 Aug 2006 06:48:13 PM ADT using DSA key ID 70771FF3
gpg: Good signature from "Mandrake Linux <mandrake@mandrakesoft.com>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: ED65 5537 C36E EE0E 309A  BA84 E789 8AE0 7077 1FF3
You still need to download the key from the page I linked to and import it into the keyring.
 
Old 09-03-2006, 03:50 PM   #80
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by HappyTux
Apparently I misread the man page just use this to check the file.
You have the patience of an angel.

Are you a priest, an attendant in a child-care centre or an orderly
in an old folks home or something? :}



Cheers,
Tink
 
Old 09-03-2006, 03:58 PM   #81
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
I thank Tinkster and HappyTux for the replies.
--------------------------------------------------------------
[root@c83-250-110-112 nissanka]# gpg --verify mandriva-free-2007-tyr-CD.x86_64.md5.asc.txt
gpg: Signature made Wed 30 Aug 2006 11:48:17 PM CEST using DSA key ID 70771FF3
gpg: Can't check signature: public key not found
[root@c83-250-110-112 nissanka]#
---------------------------------------------------------------

Why did I got a different output?

Why do I need to download that file? I must mull this over.

The problem is that I have a limited knowledge of PGP or rather Gnupg.

Last edited by Gins; 09-03-2006 at 04:00 PM.
 
Old 09-03-2006, 04:11 PM   #82
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Because it's not a key-file. It's a signed message with the md5-sums
for the files in it. But I'm repeating myself.


Cheers,
Tink
 
Old 09-03-2006, 04:12 PM   #83
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Gins
I thank Tinkster and HappyTux for the replies.
--------------------------------------------------------------
[root@c83-250-110-112 nissanka]# gpg --verify mandriva-free-2007-tyr-CD.x86_64.md5.asc.txt
gpg: Signature made Wed 30 Aug 2006 11:48:17 PM CEST using DSA key ID 70771FF3
gpg: Can't check signature: public key not found
[root@c83-250-110-112 nissanka]#
---------------------------------------------------------------

Why did I got a different output?

Why do I need to download that file? I must mull this over.

The problem is that I have a limited knowledge of PGP or rather Gnupg.
The file name is not the same but it says no public key found so did you use the commands I showed above to download then install the Mandriva public key, I used this to get the .asc file.

Code:
>$ wget http://ftp.sunet.se/pub/Linux/distributions/mandrakelinux/devel/iso/x86_64/CD/mandriva-free-2007-tyr-CD.i586.md5.asc
--17:41:38--  http://ftp.sunet.se/pub/Linux/distributions/mandrakelinux/devel/iso/x86_64/CD/mandriva-free-2007-tyr-CD.i586.md5.asc
           => `mandriva-free-2007-tyr-CD.i586.md5.asc'
Resolving ftp.sunet.se... 194.71.11.70, 2001:6b0:19::64
Connecting to ftp.sunet.se|194.71.11.70|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 448 [text/plain]

100%[=======================================>] 448           --.--K/s

17:41:39 (35.60 MB/s) - `mandriva-free-2007-tyr-CD.i586.md5.asc' saved [448/448]
 
Old 09-03-2006, 04:18 PM   #84
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Tinkster
You have the patience of an angel.

Are you a priest, an attendant in a child-care centre or an orderly
in an old folks home or something? :}



Cheers,
Tink
Nah I don't mind helping people out and sometimes it can take a while for them to grasp the concept especially when different native languages are involved.
 
Old 09-06-2006, 03:10 PM   #85
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
I have successfully downloaded a key from a public key server. Please read the following.
-----------------------------------------------------------------------

[root@c83-250-110-112 nissanka]# gpg --keyserver pgp.uk.demon.net --recv-keys A50083C5
gpg: requesting key A50083C5 from hkp server pgp.uk.demon.net
gpg: key A50083C5: public key "haritha wijetunga (my key) <s3042602@student.rmit.edu.au>" imported
gpg: Total number processed: 1
gpg: imported: 1
[root@c83-250-110-112 nissanka]#

-------------------------------------------------------------------------

I invain tried to import it onto my key ring.

[root@c83-250-110-112 nissanka]# gpg --import s3042602@student.rmit.edu.au
gpg: can't open `s3042602@student.rmit.edu.au': No such file or directory
gpg: Total number processed: 0
[root@c83-250-110-112 nissanka]#

[root@c83-250-110-112 nissanka]# gpg --import A50083C5
gpg: can't open `A50083C5': No such file or directory
gpg: Total number processed: 0
[root@c83-250-110-112 nissanka]#

[root@c83-250-110-112 nissanka]# gpg --import "haritha wijetunga (my key) <s3042602@student.rmit.edu.au>"
gpg: can't open `haritha wijetunga (my key) <s3042602@student.rmit.edu.au>': No such file or directory
gpg: Total number processed: 0
[root@c83-250-110-112 nissanka]#

[root@c83-250-110-112 nissanka]# gpg --import "haritha wijetunga <s3042602@student.rmit.edu.au>"
gpg: can't open `haritha wijetunga <s3042602@student.rmit.edu.au>': No such file or directory
gpg: Total number processed: 0
[root@c83-250-110-112 nissanka]#

[root@c83-250-110-112 nissanka]# gpg --import " <s3042602@student.rmit.edu.au>"
gpg: can't open ` <s3042602@student.rmit.edu.au>': No such file or directory
gpg: Total number processed: 0
[root@c83-250-110-112 nissanka]# gpg --import "s3042602@student.rmit.edu.au"
gpg: can't open `s3042602@student.rmit.edu.au': No such file or directory
gpg: Total number processed: 0
[root@c83-250-110-112 nissanka]#

[root@c83-250-110-112 nissanka]# gpg --import s3042602@student.rmit.edu.au
gpg: can't open `s3042602@student.rmit.edu.au': No such file or directory
gpg: Total number processed: 0
[root@c83-250-110-112 nissanka]#

What is the problem?
I tried all sorts of import commands.

My understanding is that 'recv-keys' command just download the keys. Afterwards, 'import' command should use to attach it to the key ring.

Please help me.
 
Old 09-06-2006, 03:11 PM   #86
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
I have successfully downloaded a key from a public key server. Please read the following.
-----------------------------------------------------------------------

[root@c83-250-110-112 nissanka]# gpg --keyserver pgp.uk.demon.net --recv-keys A50083C5
gpg: requesting key A50083C5 from hkp server pgp.uk.demon.net
gpg: key A50083C5: public key "haritha wijetunga (my key) <s3042602@student.rmit.edu.au>" imported
gpg: Total number processed: 1
gpg: imported: 1
[root@c83-250-110-112 nissanka]#

-------------------------------------------------------------------------

I invain tried to import it onto my key ring.

[root@c83-250-110-112 nissanka]# gpg --import s3042602@student.rmit.edu.au
gpg: can't open `s3042602@student.rmit.edu.au': No such file or directory
gpg: Total number processed: 0
[root@c83-250-110-112 nissanka]#

[root@c83-250-110-112 nissanka]# gpg --import A50083C5
gpg: can't open `A50083C5': No such file or directory
gpg: Total number processed: 0
[root@c83-250-110-112 nissanka]#

[root@c83-250-110-112 nissanka]# gpg --import "haritha wijetunga (my key) <s3042602@student.rmit.edu.au>"
gpg: can't open `haritha wijetunga (my key) <s3042602@student.rmit.edu.au>': No such file or directory
gpg: Total number processed: 0
[root@c83-250-110-112 nissanka]#

[root@c83-250-110-112 nissanka]# gpg --import "haritha wijetunga <s3042602@student.rmit.edu.au>"
gpg: can't open `haritha wijetunga <s3042602@student.rmit.edu.au>': No such file or directory
gpg: Total number processed: 0
[root@c83-250-110-112 nissanka]#

[root@c83-250-110-112 nissanka]# gpg --import " <s3042602@student.rmit.edu.au>"
gpg: can't open ` <s3042602@student.rmit.edu.au>': No such file or directory
gpg: Total number processed: 0
[root@c83-250-110-112 nissanka]# gpg --import "s3042602@student.rmit.edu.au"
gpg: can't open `s3042602@student.rmit.edu.au': No such file or directory
gpg: Total number processed: 0
[root@c83-250-110-112 nissanka]#

[root@c83-250-110-112 nissanka]# gpg --import s3042602@student.rmit.edu.au
gpg: can't open `s3042602@student.rmit.edu.au': No such file or directory
gpg: Total number processed: 0
[root@c83-250-110-112 nissanka]#

What is the problem?
I tried all sorts of import commands.

My understanding is that 'recv-keys' command just download the keys. Afterwards, 'import' command should use to attach it to the key ring.

Please help me.
 
Old 09-06-2006, 03:14 PM   #87
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Sorry for the duplication. Please remove the additional post.
 
Old 09-06-2006, 03:16 PM   #88
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
For crying out loud... the first command didn't download it, it
imported it right away ....


Cheers,
Tink
 
Old 09-06-2006, 03:45 PM   #89
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Tinkster

So if you use the following command, the 'import' command become redundant.

[root@c83-250-110-112 nissanka]#gpg --keyserver pgp.uk.demon.net --recv-keys A50083C5

I didn't know it.

-----------------------------------------------------------------------
All right.
When I double clicked, I got the following:

-----------------------------------------------------------------

Public Key Server -- Get ``0xA50083C5 ''

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 5.0
Comment: PGP Key Server 0.9.4+patch2+modifiedMWjumbopatch

mQGiBEI3+bcRBACTTdfad4JHuyj0GBx/valg3cCIm5r3KOGKtwRPRePNZfaao+Ll
7kQaWBFXbNy4TZFgbJO41vib5rmhrLvDm9/NYiRq47h1kVH7cGF/Umujag8KBOHy
pjdDDe6toKAC9A6VbEYbpm+o2+o9NZRr8sZOmT/RrMSjfmUA+AgvChF7owCg8Eqh
cMISLsbp95llB9ghOIa6dL8D/1JujAZQmgf3g0Nn539hhiPvllH7tbjovBENFvvQ
qI20WF1qswmXE0DNycXV+tmq06205pIzRfTD4aNo39a9EkIc6XrmY+n9OareGmK3
QvlwhNrKwuXKIdK+J1tt5+UI5oNTnWUlBipiDRAwVVE3fmFWCkBgLI4LZ3Po59P2
wo/1A/9JgGNwkiBSq9WGJl8X+FJCsZ8hQCR8OqWm4R4btTUqnvqwAYXHyU+FAoZU
yyeHDznJaaqOIcon9CDS7yA4AB0pzriz6Bh/Yk5/Vv3kVjJ336dxI1wRB4ypSJHA
7zvgaroCq/1csponjx8thvbEr5+MsO3TO7hsAyErTQzgt17o07Q5aGFyaXRoYSB3
aWpldHVuZ2EgKG15IGtleSkgPHMzMDQyNjAyQHN0dWRlbnQucm1pdC5lZHUuYXU+
iF4EExECAB4FAkI3+bcCGwMGCwkIBwMCAxUCAwMWAgECHgECF4AACgkQf6+QVKUA
g8WAowCg3AzSighhIgRlN1DBMMQw05QtrW4AoLzluiW2qloo5+TV5oJlwX00soDE
uQINBEI3+fIQCADfYfo7xLCz9mUlp3H/LPydB5+siEliDdA77frUAb33hvVZUIs3
bk2NwMITtjcJ3ZuA/m475B6YHS5dZCHjoUuGqA1vPi5pR/DToZ3CnFkGUj0/xLj6
HwgdXwg3Y07xIlb5y6VOJHBX8cH+44pH8oopRKQZ12V79j8j5R6XcdaZtMRIcDFz
X++FriNF0YiXgUcgifrR45wbcRNx3/VTudBn61Fl0Gi/IRoQnhGC6uWOvUIg6obE
LOoRA7hyemQhye/So7PfVy+WiGotv/ygAvuJuR7TwktYHFkosKAIlsw+L/hNtyzC
nDcHJbEfgzQm+y22Oxfg+uwpluPJ9+g8ZzXLAAMGB/0SBlJQQ1NFmBCCK3BNGSNc
sFc3WEcuyoBUroBZ6Lcf4d2KIaCgy3vyP47utHT/Isy409YyTxnFrTftRTkrLmYP
9gegwf+3C4tqlqoLFz2KV7jvio6UiUCM1Q3IlvssyDBrGcMrKJAhTP+UdP9Jf1Lj
jjZFaV4WNhUvFo5/P6moaIFiattP7I2WlxVCKwgs9Hc3FAiQfAe/6x2hhD6XTZ5P
vyugr+h/5Sm1Qm+zEMc6HMg3HR22crgaPEPYWn92PdLLhjdguVjyU1xoWAx/LLHr
xwtud8wmbeJdtY7CYIy12MO+9zawOdIz/XKm9TWZwGTW8XbhD8pnDcodNqdodZnm
iEkEGBECAAkFAkI3+fICGwwACgkQf6+QVKUAg8XSZACg5YGioqd2HjQkcEShq0S5
dVXl/UUAoIrGKn97dj/X+TMA/bYUB1Y2FlZd
=ZZ5a
-----END PGP PUBLIC KEY BLOCK-----

---------------------------------------------------------------------------


If I saved it, then I am forced to use the 'import' command.

Please tell me if my understanding is incorrect.
It seems there are several ways of playing with gpg. I must learn from you all.
 
Old 09-06-2006, 04:16 PM   #90
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Gins
Tinkster

So if you use the following command, the 'import' command become redundant.

[root@c83-250-110-112 nissanka]#gpg --keyserver pgp.uk.demon.net --recv-keys A50083C5

I didn't know it.
The --recv-keys is importing a key from a keyserver so yes the --import command is not needed for that key anymore because it will be in your keyring.
Quote:




Public Key Server -- Get ``0xA50083C5 ''

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 5.0
Comment: PGP Key Server 0.9.4+patch2+modifiedMWjumbopatch

mQGiBEI3+bc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EfgzQm+y22Oxfg+uwpluPJ9+g8ZzXLAAMGB/0SBlJQQ1NFmBCCK3BNGSNc
sFc3WEcuyoBUroBZ6Lcf4d2KIaCgy3vyP47utHT/Isy409YyTxnFrTftRTkrLmYP
9gegwf+3C4tqlqoLFz2KV7jvio6UiUCM1Q3IlvssyDBrGcMrKJAhTP+UdP9Jf1Lj
jjZFaV4WNhUvFo5/P6moaIFiattP7I2WlxVCKwgs9Hc3FAiQfAe/6x2hhD6XTZ5P
vyugr+h/5Sm1Qm+zEMc6HMg3HR22crgaPEPYWn92PdLLhjdguVjyU1xoWAx/LLHr
xwtud8wmbeJdtY7CYIy12MO+9zawOdIz/XKm9TWZwGTW8XbhD8pnDcodNqdodZnm
iEkEGBECAAkFAkI3+fICGwwACgkQf6+QVKUAg8XSZACg5YGioqd2HjQkcEShq0S5
dVXl/UUAoIrGKn97dj/X+TMA/bYUB1Y2FlZd
=ZZ5a
-----END PGP PUBLIC KEY BLOCK-----

---------------------------------------------------------------------------


If I saved it, then I am forced to use the 'import' command.

Please tell me if my understanding is incorrect.
It seems there are several ways of playing with gpg. I must learn from you all.
If you save the above to a file on local disk then yes you need the --import command because that is need to put the key into the keyring when using local file the --recv-keys gets it from keyserver and imports to keyring in one action.
 
  


Reply



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
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM

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

All times are GMT -5. The time now is 11:18 PM.

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