How do check digital signature or hash of install file?

Come here to discuss FileZilla and FTP in general

Moderator: Project members

Post Reply
Message
Author
Huyly
500 Command not understood
Posts: 4
Joined: 2010-05-11 06:58

How do check digital signature or hash of install file?

#1 Post by Huyly » 2010-05-11 07:27

I searched first but didn't find an answer to this question. Also I'm a newbie with first post and don't understand a lot of this, so go easy on me, please :?

I just downloaded the install file and saw that it was not digitally signed. Why is that? When I download Firefox and some others, it has digital signature, so I thought it would be with this, too.

In any case, so my computer warns me it is risky and asks me if I want to install it anyway. So I deferred until I could look at the site some more, and I see there is displayed for reference an SHA-512 file hash.

What kind of program do I need to generate a SHA-512 hash of the download file to see that it matches? I found one that must be old and only does MD5 and SHA1 as part of Win XP. Thanks for info on this.

User avatar
botg
Site Admin
Posts: 35592
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: How do check digital signature or hash of install file?

#2 Post by botg » 2010-05-11 18:11

What meaning does a signature carry on its own if you do not know the authenticity of the signer?


To check the provided SHA-512 hash you can use sha512sum, it's part of the GNU coreutils.

User avatar
boco
Contributor
Posts: 26954
Joined: 2006-05-01 03:28
Location: Germany

Re: How do check digital signature or hash of install file?

#3 Post by boco » 2010-05-11 20:18

I use HashTab for checking SHA512.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

Huyly
500 Command not understood
Posts: 4
Joined: 2010-05-11 06:58

Re: How do check digital signature or hash of install file?

#4 Post by Huyly » 2010-05-12 02:52

botg wrote:What meaning does a signature carry on its own if you do not know the authenticity of the signer?
I'm the newbie here. That's what I'm trying to find out. Since most things I install (like Firefox, some antispyware programs, etc.) have a dig.signature from some certificate authority that my OS checks and keeps as root certificates for trusted servers, or something like that. Firefox will check for dig. signatures to help determine the authenticity, and so will (I believe) IE. Why do they do that if it's a waste of time, and alert you if a file doesn't have it?

In a similar vein, what meaning does a sha512 have if you don't know the authenticity of whoever provided the sha512? It only shows that it matches the file you downloaded and no data was lost or changed during transmission, but not if it came from the right source or even if it was the right file that does what it was supposed to do. Thanks to all for the info.

User avatar
boco
Contributor
Posts: 26954
Joined: 2006-05-01 03:28
Location: Germany

Re: How do check digital signature or hash of install file?

#5 Post by boco » 2010-05-12 03:21

Since most things I install (like Firefox, some antispyware programs, etc.) have a dig.signature from some certificate authority that my OS checks and keeps as root certificates for trusted servers, or something like that. Firefox will check for dig. signatures to help determine the authenticity, and so will (I believe) IE. Why do they do that if it's a waste of time, and alert you if a file doesn't have it?
These "trusted" certificates stem from CAs (Certificate Authorities). I don't know anything about them, except that they paid big money to be "trusted". So, why should I trust them? Because they paid (and earn) big money with issuing certificates? No way. What keeps a bad guy from investing into a certificate to spread his stuff? Likewise, FileZilla NEVER silently trusts an FTP certificate and always notifies the user - YOU decide. And you should always check before you trust.

The ultimate trust FileZilla has is that you can get the complete source code and check for yourself. If you are especially paranoid then you can even compile it yourself! It can't get better than that. The SHA512 checksum is not about security, but solely about integrity. If it matches you can be sure the file on your HDD is the same as on the server. Nothing else.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

User avatar
botg
Site Admin
Posts: 35592
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: How do check digital signature or hash of install file?

#6 Post by botg » 2010-05-12 06:37

Regarding trust, have a look at TLS/SSL. All it takes is a single rogue CA to undermine the complete system. Common browsers for example already trust CAs that belong to the Chinese government. That CA issues cert for microsoft.com. Someone redirects your internet traffic, you go to microsoft.com to download a patch but instead you get a signed trojan seemingly originating from microsoft and everything on your system tells you that file is authentic. Whoops.

Huyly
500 Command not understood
Posts: 4
Joined: 2010-05-11 06:58

Re: How do check digital signature or hash of install file?

#7 Post by Huyly » 2010-05-28 09:58

boco wrote:I use HashTab for checking SHA512.
I tried HashTab and for filezilla install file it only showed CRC, MD5, and SHA1 in Windows XP. Is there some other trick to it to get it to calculate SHA512? Thanks.

User avatar
boco
Contributor
Posts: 26954
Joined: 2006-05-01 03:28
Location: Germany

Re: How do check digital signature or hash of install file?

#8 Post by boco » 2010-05-28 11:25

Use the little "Options" link or right click the CRC window and choose "Settings...". Then a window will appear where you can select the hashes you would like to be computed. Be aware that the operation becomes slower the more hashes you select here.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

Post Reply