Discussion:
Can't check signature: public key not found
(too old to reply)
l***@gmail.com
2008-05-30 08:45:19 UTC
Permalink
Dears,

I got public AND private key part from "Key_Name <e-***@email.com>".
It's my key I can say. But I share it with someone else. He - let's
say Joe - also has public AND private key from my key.

Now - I receive file FileName.asc from Joe encrypted with our shared
key "Key_Name <e-***@email.com>". I can decrypt it with PGP software.
At start PGP is trying to connect with some server, that I got error
that server open failed. But file is decrypted. Now when I'm using GPG
and I want to decrypt same file I got message:
-------------------------------------------------------------------------------------------------------------------
"gpg: encrypted with 2048-bit ELG-E key, ID 35FAF1AA, created
2008-02-13
"Key_Name <e-***@email.com>"
gpg: Signature made 2008-04-02 19:01:46 using DSA key ID 94708F7E
gpg: Can't check signature: public key not found

File: d:\Documents and Settings\XXXXXX\Desktop\FileName.asc
-------------------------------------------------------------------------------------------------------------------
Now I have questions - why can't I decrypt it?
1) Is this because signing key is not verified on any server?
2) I have public and private part of key - so why can't GPG see this?
3) Or is this possible that file is signed by other key... ?
4) Is it possible to open this file anyways...PGP can open it - so why
GPG can't....
l***@gmail.com
2008-05-30 09:01:20 UTC
Permalink
Liittle update:

Now I can open this file with GPG when I use only "gpg FileName.asc"
command. But decrypted file has name like "FileName" - so after
encrypted file, just .asc fraze is removed. How to get real name of
file inside *.asc file. I know that ecrypted file has other name....
Guy
2008-05-30 09:53:51 UTC
Permalink
Post by l***@gmail.com
Now I can open this file with GPG when I use only "gpg FileName.asc"
command. But decrypted file has name like "FileName" - so after
encrypted file, just .asc fraze is removed. How to get real name of
file inside *.asc file. I know that ecrypted file has other name....
gpg --use-embedded-filename FileName.asc

Read Man page.
--
OpenPGP: id=18795161E22D3905; preference=signencrypt;
url=http://guysalias.fateback.com/pgpkeys.txt
l***@gmail.com
2008-06-03 08:24:14 UTC
Permalink
example files:
=== GPG encrypted file: "FileName.asc"
=== file not encrypted (in clear) which is inside FileName.asc:
"gpg_cd_[archive]_monday240508.cfg"

If I decrypt FileName.asc with command:
"gpg FileName.asc" as result I got decrypted file "FileName" which has
correct content but wrong filename - should be
"gpg_cd_[archive]_monday240508.cfg", not "FileName".

If I decrypt FileName.asc with command:
"gpg --use-embedded-filename FileName.asc" as result I got file
"gpg_cd" with size 0 bytes (???).

What I do wrong?
How to decrypt with corrrect file name?
Guy
2008-06-03 18:51:10 UTC
Permalink
Post by l***@gmail.com
=== GPG encrypted file: "FileName.asc"
"gpg_cd_[archive]_monday240508.cfg"
"gpg FileName.asc" as result I got decrypted file "FileName" which
has correct content but wrong filename - should be
"gpg_cd_[archive]_monday240508.cfg", not "FileName".
"gpg --use-embedded-filename FileName.asc" as result I got file
"gpg_cd" with size 0 bytes (???).
What I do wrong?
How to decrypt with corrrect file name?
How is file being encrypted and by what program?

Using gpg (GnuPG) 1.4.9 it works fine - below example.


$ ls -s
total 7691
7691 gpg_cd_[archive]_monday240508.cfg

$ gpg -o filename.asc -seat --digest-algo sha256 -u key_name -r key_name gpg_cd_[archive]_monday240508.cfg

You need a passphrase to unlock the secret key for
user: "key_name <e-***@email.com>"
2048-bit DSA key, ID F6802942, created 2008-06-03


$ ren *.cfg *.cfx

$ gpg --use-embedded-filename filename.asc

You need a passphrase to unlock the secret key for
user: "key_name <e-***@email.com>"
2048-bit ELG-E key, ID CB45F36E, created 2008-06-03 (main key ID F6802942)

gpg: encrypted with 2048-bit ELG-E key, ID CB45F36E, created 2008-06-03
"key_name <e-***@email.com>"
gpg: Signature made 06/03/08 13:47:14 using DSA key ID F6802942
gpg: Good signature from "key_name <e-***@email.com>"

$ ls -s
total 25964
10582 filename.asc
7691 gpg_cd_[archive]_monday240508.cfg
7691 gpg_cd_[archive]_monday240508.cfx

$ gpg --print-md md5 *.cf?
gpg_cd_[archive]_monday240508.cfg: 12 D0 67 B1 26 1E F8 67 44 25 19 1D 30 FB 85
3A
gpg_cd_[archive]_monday240508.cfx: 12 D0 67 B1 26 1E F8 67 44 25 19 1D 30 FB 85
3A

$
--
OpenPGP: id=18795161E22D3905; preference=signencrypt;
url=http://guysalias.fateback.com/pgpkeys.txt
Loading...