Page MenuHome GnuPG

out of secure memory while allocating 2500 bytes message running with --batch option
Closed, ResolvedPublic

Description

Release: 1.2.1

Environment

sun solaris 2.6

Description

I am trying to run gpg using the -- batch option to decrypt a file. The README files describes how to do this when you have a pass phrase. I think I have this set up so I can run it from a unix script but it fails with the secure memory error message. My script points a file descriptor to the file that contains the passphrase. The gpg command includes the --batch option and the --passphrase-fd parameter.

exec 3< ghmf.txt
gpg --passphrase-fd 3 --batch --decrypt-files /NT2/private/sae_200306061220.pgp

Am I doing something wrong or is something broken?

Thanks for any help.

Fix

The files was not long but the shell seemd not to send an eof to fd 3. The suggested method worked.

Event Timeline

This pretty much looks like the passphrase file is too
large. Please try it this way:

gpg --passphrase-fd 0 ..... <ghmf.txt

or if you like to use fd 3

gpg --passphrase-fd 3 .... 3< ghmf.txt

solved - problem with the shell