LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-12-2014, 01:50 AM   #1
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
gpg - Can't check signature: public key not found when decrypting file


Hi everyone,

I am getting this error message "Can't check signature: public key not found" when trying to decrypt a file.

Code:
server:awesomeuser /home/awesomeuser/myfolder>gpg -v --decrypt FILENAME.pdf.gpg > FILENAME.PDF 
gpg: WARNING: using insecure memory! 
gpg: please see http://www.gnupg.org/faq.html for more information 
gpg: public key is 3FXXXXXX 
gpg: public key is B0XXXXXX 
gpg: using subkey B0XXXXXX instead of primary key 9EXXXXXX 
gpg: encrypted with ELG-E key, ID 3FXXXXXX 
gpg: using subkey B0XXXXXX instead of primary key 9EXXXXXX 
gpg: encrypted with 1024-bit ELG-E key, ID B0XXXXXX, created 2004-10-20 
      "awesomeKeyname (awesomeKeyname GPG key)" 
gpg: AES encrypted data 
gpg: original file name='FILENAME.pdf' 
gpg: Signature made Mon Jan 20 17:10:15 MEZ 2014 using DSA key ID C6XXXXXX 
gpg: Can't check signature: public key not found
Code:
gpg --list-keys
would show B0XXXXXX as the subkey (with primary key 9EXXXXXX), which is correct. I am concerned with the following lines:
Code:
gpg: public key is 3FXXXXXX
Signature made....using DSA key ID C6XXXXXX
What are these? I am not familiar yet with signing keys (which, in this case, sounds like there is another key used.) If my theory is correct, do I also need to install the public key of C6XXXXXX in my public keyring?

Cheers!
 
Old 02-12-2014, 04:07 AM   #2
pingwinowiewc
Member
 
Registered: Feb 2014
Location: Europe
Distribution: Debian, Mint, Arch (multiboot)
Posts: 90

Rep: Reputation: Disabled
gpc stores keys in:

public keys -> /user/.gpg/pubic
private -> /user/.gpg/private

so, try switching key-type, than re-run gpg
 
Old 02-12-2014, 05:02 AM   #3
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Original Poster
Rep: Reputation: 72
Quote:
Originally Posted by pingwinowiewc View Post
gpc stores keys in:

public keys -> /user/.gpg/pubic
private -> /user/.gpg/private

so, try switching key-type, than re-run gpg
Why would I wan't to do that?
 
Old 02-12-2014, 09:52 AM   #4
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Original Poster
Rep: Reputation: 72
Ouch.

Apparently, the decryption is working, and the message

Code:
gpg: Can't check signature: public key not found
is just informational.

 
  


Reply

Tags
gpg



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
Self signed public key (GPG) prabhatsoni Linux - Software 2 09-16-2010 10:18 PM
gpg: public key not found verbose Linux - Newbie 4 12-31-2009 03:00 PM
Revoking GPG key with only passphrase and public key djib Linux - Security 2 03-13-2007 03:20 AM
apt-get GPG signature check unknow/illegal/corrupt mofo Linux - Software 2 05-20-2005 01:59 PM
GPG Data, Secret Key but no Public Key? Aeiri Linux - Software 5 07-20-2004 06:00 PM

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

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