Re: Invalid packet error message

2013-01-08 Thread Werner Koch
On Mon,  7 Jan 2013 22:14, bd9...@att.com said:

gpg: [don't know]: invalid packet (ctb=70)

 Does anyone know what this means?  I tried several Google searches but

Your input data is corrupted.  OpenPGP messages are constructed from
several packets, each packets starts with a tag byte commonly called CTB
indicating the type of the packet and how the length of the packet is
specified. 0x70 is not a valid CTB, thus you see this message.

A common cause for a corrupted message is the use of a non binary clean
channel (e.g. using ftp without switching to binary mode).  Mail
software may also corrupt the message.  Ask the sender of the message to
encapsulate it in a ZIP or tar file and than unzip it before decrypting.
If this works or you can't unzip it your transport channel is non 8 bit
clean.  A quick work around would be the use of the --armor or -a
option.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


RE: Invalid packet error message

2013-01-08 Thread DUELL, BOB
Thanks for the excellent explanation!

Before I ask for the file to be retransmitted, one quick question (perhaps 
obvious but bear with me):

If I ask the sender to use the -a option, the resulting file will be ASCII and 
as such, I would download it as text from our FTP server, not binary, 
correct?

It just occurred to me that the problem was on the sender's side; perhaps they 
uploaded the file as text when they placed it on our FTP server (we use an 
intermediary FTP site).  At any rate, I think I understand now.

Thanks very much!

Bob

-Original Message-
From: Werner Koch [mailto:w...@gnupg.org] 
Sent: Tuesday, January 08, 2013 12:18 AM
To: DUELL, BOB
Cc: gnupg-users@gnupg.org
Subject: Re: Invalid packet error message

On Mon,  7 Jan 2013 22:14, bd9...@att.com said:

gpg: [don't know]: invalid packet (ctb=70)

 Does anyone know what this means?  I tried several Google searches but

Your input data is corrupted.  OpenPGP messages are constructed from
several packets, each packets starts with a tag byte commonly called CTB
indicating the type of the packet and how the length of the packet is
specified. 0x70 is not a valid CTB, thus you see this message.

A common cause for a corrupted message is the use of a non binary clean
channel (e.g. using ftp without switching to binary mode).  Mail
software may also corrupt the message.  Ask the sender of the message to
encapsulate it in a ZIP or tar file and than unzip it before decrypting.
If this works or you can't unzip it your transport channel is non 8 bit
clean.  A quick work around would be the use of the --armor or -a
option.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Invalid packet error message

2013-01-07 Thread DUELL, BOB
Hi,

When trying to decrypt a file, we are getting this error message:

   gpg: [don't know]: invalid packet (ctb=70)

Does anyone know what this means?  I tried several Google searches but can't 
find anything relevant.  FWIW, here is the command (all one line):

   gpg --homedir /opt/app/apps/dbmprod/gpg --local-user mykeyID
   --output imdm_extract_20121221.dat 
   --decrypt imdm_extract_20121221.dat.pgp

Thanks,

Bob

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


RE: Invalid packet error message

2013-01-07 Thread DUELL, BOB
-Original Message-
From: bre...@srv1.adept-hosting.net [mailto:bre...@srv1.adept-hosting.net] On 
Behalf Of Anonymous
Sent: Monday, January 07, 2013 3:14 PM
To: DUELL, BOB
Subject: Re: Invalid packet error message

  gpg
  --homedir /opt/app/apps/dbmprod/gpg
  --local-user mykeyID  
  --imdm_extract_20121221.dat
  --decrypt imdm_extract_20121221.dat.pgp



make --output imdm_extract_20121221.dat 
last in command line

[reply to list]

Unfortunately, that's not it; I get:

gpg: WARNING: unsafe permissions on homedir `/opt/app/apps/dbmprod/gpg'
gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information
usage: gpg [options] --decrypt [filename]

Also, here is my setup:

bd9439@dspsas01 $ gpg --homedir /opt/app/apps/dbmprod/gpg --version
gpg: WARNING: unsafe permissions on homedir `/opt/app/apps/dbmprod/gpg'
gpg (GnuPG) 1.4.11
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /opt/app/apps/dbmprod/gpg
Supported algorithms:
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128,
CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

And yes, I know it's an old version.  I just have not had a reason to upgrade; 
what we have has worked fine (until now).  And yes, the unsafe permissions is 
understood.  I have this installed in a public directory so all users can 
decrypt files (we have a common key to receive files from outside sources).  
This is the first time I've seen such a message.  We will ask the outside 
sourced to re-encrypt and re-send the file (perhaps it was corrupted during 
FTP), but I'm curious what this error message means.

Thanks!

Bob


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users