Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 2nd, 2012, 08:23 AM
NotionCommotion NotionCommotion is offline
Contributing User
Click here for more information.
 
Join Date: Sep 2006
Posts: 1,464 NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 6 h 21 m 9 sec
Reputation Power: 526
PGP TarBall File Signature Keys Verification

I am kind of new to this whole PGP TarBall File Signature Keys Verification thing. Not sure if this is the correct forum to post this question, so please move if necessary.

Here is my understanding.
  1. There are a bunch of TarBall files with accompanying signatures on the web.
  2. You download both of them.
  3. You gpg the signature file to make sure it is valid.
  4. If you don't have the key, you get it from pgpkeys.mit.edu. Always there, or other places?
  5. You agree to trust a given email. How do I determine which emails I should trust?

Please see below for my implementation of the above steps. I commented out the Primary key fingerprint as I didn't know if it had something to do with me. Did I need to?

Now, assuming I am doing everything correct, how do I now deal with the actual TarBall and not just the signature file?

Thank you


[root@localhost temp]# wget http://www.openwall.com/phpass/phpass-0.3.tar.gz
....
[root@localhost temp]# wget http://www.openwall.com/phpass/phpass-0.3.tar.gz.sign
....
[root@localhost temp]# gpg phpass-0.3.tar.gz.sign
gpg: Signature made Thu 22 Apr 2010 01:44:05 AM PDT using RSA key ID 295029F1
gpg: Can't check signature: public key not found
[root@localhost temp]# gpg --keyserver pgpkeys.mit.edu --recv-key 295029F1
gpg: requesting key 295029F1 from hkp server pgpkeys.mit.edu
gpg: key 295029F1: public key "Openwall Project <signatures@openwall.com>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
[root@localhost temp]# gpg phpass-0.3.tar.gz.sign
gpg: Signature made Thu 22 Apr 2010 01:44:05 AM PDT using RSA key ID 295029F1
gpg: Good signature from "Openwall Project <signatures@openwall.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: xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx
[root@localhost temp]# gpg --edit-key signatures@openwall.com trust
gpg (GnuPG) 1.4.5; Copyright (C) 2006 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.


pub 1024R/295029F1 created: 1999-09-13 expires: never usage: SCEA
trust: unknown validity: unknown
[ unknown] (1). Openwall Project <signatures@openwall.com>

pub 1024R/295029F1 created: 1999-09-13 expires: never usage: SCEA
trust: unknown validity: unknown
[ unknown] (1). Openwall Project <signatures@openwall.com>

Please decide how far you trust this user to correctly verify other users' keys
(by looking at passports, checking fingerprints from different sources, etc.)

1 = I don't know or won't say
2 = I do NOT trust
3 = I trust marginally
4 = I trust fully
5 = I trust ultimately
m = back to the main menu

Your decision? 5
Do you really want to set this key to ultimate trust? (y/N) y

pub 1024R/295029F1 created: 1999-09-13 expires: never usage: SCEA
trust: ultimate validity: unknown
[ unknown] (1). Openwall Project <signatures@openwall.com>
Please note that the shown key validity is not necessarily correct
unless you restart the program.

Command> q
[root@localhost temp]# gpg phpass-0.3.tar.gz.sign
gpg: Signature made Thu 22 Apr 2010 01:44:05 AM PDT using RSA key ID 295029F1
gpg: checking the trustdb
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: Good signature from "Openwall Project <signatures@openwall.com>"
[root@localhost temp]#

Reply With Quote
  #2  
Old August 3rd, 2012, 02:07 PM
NotionCommotion NotionCommotion is offline
Contributing User
Click here for more information.
 
Join Date: Sep 2006
Posts: 1,464 NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 6 h 21 m 9 sec
Reputation Power: 526
If this is the wrong forum to post this question, please advise.

Reply With Quote
  #3  
Old August 3rd, 2012, 04:23 PM
salem's Avatar
salem salem is offline
Contributed User
Click here for more information
 
Join Date: Jun 2005
Posts: 3,831 salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 153 Folding Title: Novice Folder
Time spent in forums: 2 Months 3 Weeks 2 Days 13 h 49 m 45 sec
Reputation Power: 1774
> If you don't have the key, you get it from pgpkeys.mit.edu. Always there, or other places?
You can usually find lists of key servers.
Wikipedia

> You agree to trust a given email. How do I determine which emails I should trust?
In your dialog, I would have gone for 3 rather than 5.
5 is like close family members, or friends from childhood.


> I commented out the Primary key fingerprint as I didn't know if it had something to do with me.
> Did I need to?
Is it this one?
fingerprints
The full public key for openwall is 128 bytes long (1024 bits). The fingerprint is a shorter condensed version of the public key which is a lot easier to "eyeball" compare with independent sources (such as the web page).

But FWIW, it's a good habit to comment out anything looking like keys when posting on forums if you're at all unsure about what's going on.



> how do I now deal with the actual TarBall and not just the signature file?
Try
tar xf phpass-0.3.tar.gz
This should extract everything, probably into a directory called phpass-0.3.

tar tf phpass-0.3.tar.gz
will give you a list of all the contents.

And --help will give you all the things tar can do.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper

Reply With Quote
  #4  
Old August 3rd, 2012, 07:02 PM
NotionCommotion NotionCommotion is offline
Contributing User
Click here for more information.
 
Join Date: Sep 2006
Posts: 1,464 NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 6 h 21 m 9 sec
Reputation Power: 526
Thank you salem,

Are there any bad lists of key servers which are corrupt/misleading/evil/etc? If so, how would I know that they are bad?

Good definition of an email one should trust. One of the tutorials I was reading said select 5, and I thought "your not my brother or childhood friend!"

Your absolutely correct regarding the Primary key fingerprint. I suspected it, but erred on caution.

As far as dealing with the actual TarBall, yes I see how that will extract the files, but how does the signature relate to it. If there wasn't a signature at all, you would open the file the same way. Why is it now okay?

Lastly, does my general understanding seem correct? It seems that way to me, but I often find I am thinking totally different than what I should!

Thank you for your help!

Reply With Quote
  #5  
Old August 4th, 2012, 01:16 AM
salem's Avatar
salem salem is offline
Contributed User
Click here for more information
 
Join Date: Jun 2005
Posts: 3,831 salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 153 Folding Title: Novice Folder
Time spent in forums: 2 Months 3 Weeks 2 Days 13 h 49 m 45 sec
Reputation Power: 1774
> Are there any bad lists of key servers which are corrupt/misleading/evil/etc? If so, how would I know that they are bad?
When you verify the signature on your machine, you're basically establishing that the signature on the file and the public key on the key server are consistent. If the signature check fails, one (or the other) is wrong, and you should proceed with due caution.

> If there wasn't a signature at all, you would open the file the same way. Why is it now okay?
Think of the signature as a nice pretty hologram saying "genuine product". All it is telling you is that what you have is what the author intended you to have (ie, it hasn't been tampered with in transit).

You have a genuine box, but it doesn't tell you whether it is a quality box, or a box that does what you want it to.

A signed script containing "rm -rf /" is just as dangerous as one without a signature.

So, regardless of whether there is a signature saying "genuine" box, you need to exercise your own due dilligence to examine the box to make sure it's what you really wanted.

All .tar and .tar.gz files are extracted in the same way, regardless of whether you have a signature file as well. The signature is there just to tell you that the file is what the author intended you to have.
Comments on this post
NotionCommotion agrees: Thanks!

Reply With Quote
  #6  
Old August 4th, 2012, 06:12 AM
NotionCommotion NotionCommotion is offline
Contributing User
Click here for more information.
 
Join Date: Sep 2006
Posts: 1,464 NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 6 h 21 m 9 sec
Reputation Power: 526
Ah, makes sense.

The signature is just..... a signature.


I had first thought that the signature included some sort of hash of the TarBull so one would know the TarBull was the same one that the author signed.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > PGP TarBall File Signature Keys Verification

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap