help needed desperately: gpg --decrypt hanging

Dave Della Costa dave at acadaca.com
Fri Oct 31 15:06:27 CET 2003


Hi Steve,

Yes, the Halloween bug is hitting us all here in NYC too. :)

Well, the first problem is that I'm not able to use gpg from the command
line, in at least one fashion (see my message to David Shaw on the
list).  The next issue is that Crypt::GPG (perl module) now appears to
be broken, because, I'm assuming, it is using the same method to decrypt
text through gpg.  Of course this is not the realm of this list, but I'm
hoping that if I get gpg working or at least understand why it doesn't
work the way I think it should, then I'll figure out the Crypt::GPG
issue...we'll see.  Just to avoid restating the issue--check out the
email I sent in reply to David Shaw's--that better explains what's going
on.

Thanks for your help,
Dave



On Fri, 2003-10-31 at 14:02, Steve Butler wrote:
> OK.  Perhaps I was the brain dead one <<and with Halloween running rampant
> through the company today it could be contagious>>.
> 
> Perhaps you already know this and I just didn't pick it out from the Perl
> script.  However, the data to be encrypted and the passphrase cannot both
> come through STDIN (or FD 0).  I would suggest that you send the passphrase
> through STDIN (and use the --passphrase-fd 0 command line option) and send
> the data to decrypt through a named pipe.  Perhaps something like:
> 
> mknod mydata p
> cat info_to_decrypt > mydata &
> cat my_pass_phrase | gpg --no-tty --passphrase-fd 0 --decrypt mydata >
> my_output_file
> 
> Does that help or am I still barking up the wrong tree?
> 
> --Steve
> 
> -----Original Message-----
> From: Dave Della Costa [mailto:dave at acadaca.com]
> Sent: Friday, October 31, 2003 10:52 AM
> To: gnupg-users at gnupg.org
> Cc: Steve Butler; jason at acadaca.com
> Subject: RE: help needed desperately: gpg --decrypt hanging
> 
> 
> Sorry Steve, I don't think I explained the problem well enough.  If I
> run, on the command line:
> 
> gpg --decrypt
> 
> Then I pass it the encrypted text to decrypt, and then I give it the
> password, it just hangs!  It sits and sits and sits...and we get
> nothing.
> 
> Thanks for your help!
> 
> Dave
> 
> 
> 
> 
> On Fri, 2003-10-31 at 12:47, Steve Butler wrote:
> > Dave,
> > 
> > I don't use Perl but I do have a Korn shell script that works for me on a
> > SuSE SLES Linux box.  You will need to replace the 'default gpg_pass$1'
> > routine with something that gets the passphrase for your secret key.  Also
> > replace 'default gpg_homd' with something that gets the GnuPG home
> directory
> > for your box (or set the environment before running the script).
> > 
> > 
> > # COPYRIGHT (c) 1995-2002 Stephen M. Butler dba XRG
> > # This information may be copied, distributed and/or modified under
> > # certain conditions, but it comes WITHOUT ANY WARRANTY.
> > # See the Design Science License for more details
> > # =================================================================
> > #
> > #  gpg_decrypt pass_id   input_file  output_file
> > #     Interface for edi and default routines to decrypt pgp files vi
> GnuPG.
> > #
> > #     pass_id      1 or 2 to indicate which pass phrase needs to be picked
> > up.
> > #     input_file   name of file to decrypt.  Includes any path
> > #     output_file  name where to place output plain text file (with path)
> > #
> > #     Note:  See 'default' script for default usage.
> > 
> > XRG_DBA=${XRG_DBA:-/usr/xrg_dba}
> > xrgbin=$XRG_DBA/bin
> > 
> > homedir=$($xrgbin/default gpg_home)
> > 
> >   rm -f "$3" 2>&1 1> /dev/null
> >   $xrgbin/default gpg_pass$1 \
> >   | gpg --homedir $homedir --passphrase-fd 0 --no-tty --skip-verify \
> >         --output "$3" --decrypt "$2"
> > #
> > 
> > -----Original Message-----
> > From: Dave Della Costa [mailto:dave at acadaca.com]
> > Sent: Friday, October 31, 2003 8:44 AM
> > To: gnupg-users at gnupg.org
> > Cc: jason at acadaca.com
> > Subject: help needed desperately: gpg --decrypt hanging
> > 
> > 
> > _______________________________________________
> > Gnupg-users mailing list
> > Gnupg-users at gnupg.org
> > http://lists.gnupg.org/mailman/listinfo/gnupg-users
> > 
> > 
> > CONFIDENTIALITY NOTICE:  This e-mail message, including any attachments,
> is for the sole use of the intended recipient(s) and may contain
> confidential and privileged information.  Any unauthorized review, use,
> disclosure or distribution is prohibited.  If you are not the intended
> recipient, please contact the sender by reply e-mail and destroy all copies
> of the original message.
-- 
Acadaca Internet Solutions
636 Broadway, Suite 516, Bell #50
New York, NY 10012
p 212.505.5885
f 212.505.5655

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : /pipermail/attachments/20031031/6b80c51a/attachment.bin


More information about the Gnupg-users mailing list