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 01-10-2018, 06:41 AM   #1
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,723

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Question How to verify AppImage file with .asc file.


Hi.

How can I verify an AppImage file with a .asc file.

For example here: https://bintray.com/probono/AppImages/GIMP#files

There's these files amongst others:
'GIMP-2.9.3.glibc2.15-x86_64.AppImage.asc'
'GIMP-2.9.3.glibc2.15-x86_64.AppImage'

Can a verification be done in a fairly straightforward manner?

Thanks.

Last edited by linustalman; 01-10-2018 at 02:41 PM. Reason: 'GIMP-2.2.9.3.glibc2.15-x86_64.AppImage' -> 'GIMP-2.9.3.glibc2.15-x86_64.AppImage'
 
Old 01-10-2018, 11:48 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Is the .asc file an ASCII text file? If so what does it contain?

I'm wondering if it contains an md5sum or other checksum or hahs of the .AppImage file. If so you could verify by running the commmand (e.g. md5sum) against the .AppImage file and see if it produces the same output.
 
Old 01-10-2018, 01:02 PM   #3
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,723

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Post

Quote:
Originally Posted by MensaWater View Post
Is the .asc file an ASCII text file? If so what does it contain?

I'm wondering if it contains an md5sum or other checksum or hahs of the .AppImage file. If so you could verify by running the commmand (e.g. md5sum) against the .AppImage file and see if it produces the same output.
Hi MW.

The .asc file is here: https://bintray.com/probono/AppImage...4.AppImage.asc

It's a PGP sig.
 
Old 01-10-2018, 01:53 PM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
OK - when I saw .asc my first thought was an ASCII armored (gpg/pgp encyrpted) file as that is what I'm used to seeing on those.

It isn't clear to me how (or even IF) appimage creators are signing. If this particular one is signed running "file GIMP-2.2.9.3.glibc2.15-x86_64.AppImage" should show it as a GPG signed file. If so you should be able to verify it against the signature by running:
gpg --verify GIMP-2.9.3.glibc2.15-x86_64.AppImage.asc GIMP-2.2.9.3.glibc2.15-x86_64.AppImage
 
Old 01-10-2018, 02:31 PM   #5
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,723

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Code:
gpg --verify GIMP-2.9.3.glibc2.15-x86_64.AppImage.asc GIMP-2.9.3.glibc2.15-x86_64.AppImage
Code:
gpg: Signature made Sun 24 Apr 2016 20:48:44 IST
gpg:                using RSA key 379CE192D401AB61
gpg: Can't check signature: No public key

Last edited by linustalman; 01-10-2018 at 02:40 PM.
 
Old 01-10-2018, 02:41 PM   #6
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
What does "file GIMP-2.2.2.9.3.glibc2.15-x86_64.AppImage" output?

What does "gpg GIMP-2.2.2.9.3.glibc2.15-x86_64.AppImage" output?

Does adding "./" in front of the .asc file name in the gpg --verify command line change anything?
 
Old 01-10-2018, 02:44 PM   #7
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,723

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Post

Quote:
Originally Posted by MensaWater View Post
What does "file GIMP-2.2.2.9.3.glibc2.15-x86_64.AppImage" output?

What does "gpg GIMP-2.2.2.9.3.glibc2.15-x86_64.AppImage" output?

Does adding "./" in front of the .asc file name in the gpg --verify command line change anything?
Code:
file GIMP-2.9.3.glibc2.15-x86_64.AppImage
GIMP-2.9.3.glibc2.15-x86_64.AppImage: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=c271a1d61198e53b90595d8bf0a7d50a57e0a53e, stripped
Code:
gpg GIMP-2.9.3.glibc2.15-x86_64.AppImage
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
gpg: no valid OpenPGP data found.
gpg: processing message failed: Unknown system error
And adding "./" changed nothing.
 
Old 01-10-2018, 02:57 PM   #8
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
The "file" and "gpg" commands say this AppImage is NOT an encrypted file so the signature unless used by the executable itself has no meaning. Have you already made the AppImage exectuable and tried to run it?

On the GitHub AppImage site there was discussion about adding encryption to files but it didn't really seem to come to a conclusion which is why I earlier said it wasn't clear if they were actually doing it.

I've not used AppImage but the raison d'etre appears to be to create executables that install applications on Linux desktop much the same way as executables are created for Mac and Windows desktops. The idea is to do it this way rather than building an rpm or deb file for the installation. I see various folks have created AppImage files but don't know that I'd want them without knowing the source. (In fact I rarely use 3rd party rpm files - I typically prefer to download the tar.gz, extract, configure and make so I have the actual source code to examine.)

Last edited by MensaWater; 01-10-2018 at 02:59 PM.
 
Old 01-10-2018, 04:07 PM   #9
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,723

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by MensaWater View Post
The "file" and "gpg" commands say this AppImage is NOT an encrypted file so the signature unless used by the executable itself has no meaning. Have you already made the AppImage exectuable and tried to run it?

On the GitHub AppImage site there was discussion about adding encryption to files but it didn't really seem to come to a conclusion which is why I earlier said it wasn't clear if they were actually doing it.

I've not used AppImage but the raison d'etre appears to be to create executables that install applications on Linux desktop much the same way as executables are created for Mac and Windows desktops. The idea is to do it this way rather than building an rpm or deb file for the installation. I see various folks have created AppImage files but don't know that I'd want them without knowing the source. (In fact I rarely use 3rd party rpm files - I typically prefer to download the tar.gz, extract, configure and make so I have the actual source code to examine.)
Ok.
So once you download a .appimage file - you cannot look at it's source code?
Since it does not have root privilege, it's possible damage is limited but I guess a rogue file could delete all your personal files or something awful like that.
 
Old 01-10-2018, 04:14 PM   #10
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by linustalman View Post
So once you download a .appimage file - you cannot look at it's source code?
That's the way I read it but as I said I've not used AppImage myself. I didn't even know it existed until today. (I do a fair amount with gpg but as I said the AppImage file itself is not encrypted).
 
Old 01-11-2018, 05:01 AM   #11
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,723

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Post

Quote:
Originally Posted by MensaWater View Post
... Have you already made the AppImage exectuable and tried to run it? ...
Yes, all my AppImage files work fine.
 
Old 01-11-2018, 05:10 AM   #12
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
I don't know if this will be of any use: https://github.com/AppImage/AppImageUpdate/issues/16

Wouldn't you need the package provider's public key in order to verify the PGP signing?
 
Old 01-11-2018, 07:48 AM   #13
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by hydrurga View Post
I don't know if this will be of any use: https://github.com/AppImage/AppImageUpdate/issues/16

Wouldn't you need the package provider's public key in order to verify the PGP signing?
That's the thread I alluded to in my posts. If you notice it is there as a place holder and doesn't actually come to a conclusion about how best to do things.

Also as noted in my last post the AppImage file itself is NOT encrypted so there is nothing to decrypt or verify as signed to access that file. The makes it seem possible that while the executable itself is not encrypted or signed it may have some routine within itself that checks for a valid signature file. Without seeing the screen output of the actual AppImage exectuable run one couldn't be sure (and maybe not even if one did see the output). If it does have such an internal check since the OP notes he was able to run the AppImage files with no problem so it appears he doesn't need anything else such as a public key.
 
Old 01-11-2018, 08:02 AM   #14
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by MensaWater View Post
That's the thread I alluded to in my posts. If you notice it is there as a place holder and doesn't actually come to a conclusion about how best to do things.

Also as noted in my last post the AppImage file itself is NOT encrypted so there is nothing to decrypt or verify as signed to access that file. The makes it seem possible that while the executable itself is not encrypted or signed it may have some routine within itself that checks for a valid signature file. Without seeing the screen output of the actual AppImage exectuable run one couldn't be sure (and maybe not even if one did see the output). If it does have such an internal check since the OP notes he was able to run the AppImage files with no problem so it appears he doesn't need anything else such as a public key.
According to that thread, the internal code to do the checking is currently commented out. In it, they debate the best way of fetching and storing the public key.
 
Old 01-11-2018, 08:16 AM   #15
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by hydrurga View Post
According to that thread, the internal code to do the checking is currently commented out. In it, they debate the best way of fetching and storing the public key.
Right but that doesn't explain why there is a .asc file shipped with the specific AppImage the OP asked about. It is conceivable someone decided what to do in their own AppImage build. I wasn't saying it definitely was doing such a signature verification - I was speculating on what is possible.

My main point is that the AppImage as a singular file is not encrypted or signed. There is no way to tell what it has built into it without seeing the source code that created the binary. I guess if one were interested they could install the AppImage but NOT the asc file and try to run the AppImage to see what it does.

I suspect it isn't using the .asc file at all but it does make me wonder why the .asc is shipped if that is the case.
 
  


Reply

Tags
appimage, asc, files, verify



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
How important is it to check hashes or PGP/ASC signatures for file integrity? NotionCommotion Linux - Newbie 3 04-04-2014 08:43 AM
[SOLVED] how to verify file with gpg when you've to made .sig file yourself roberto32 Linux - Security 1 01-31-2014 09:41 AM
What kind of file is *.asc? CodeWarrior Linux - General 4 07-10-2004 11:45 PM
The .asc file and what to do with it jspaceman Slackware 2 07-10-2004 11:42 PM

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

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