1

I have a customer whose application workflow relies on gnupg (gpg). Their system was recently migrated from CentOS 5.x, which shipped with gnupg version 1, to CentOS 6.5, which has gnupg version 2.

While this change should have been noticed in the testing stages, it was missed by the developers, and the application is now broken.

Are there any options to run the older variant of gnupg on an EL6 system? There doesn't seem to be an obvious solution, so how can I get back to the previous version's functionality?

The nature of the issue seems to surround the gpg2 requirement of an agent. From the man page ;)

   --no-use-agent
          This is dummy option. gpg2 always requires the agent.

The relevant command string is:

# cat /home/db1/.passphrase | gpg --no-tty --passphrase-fd 0 --output xxx.TXT --decrypt xxx.pgp

The response is:

can't connect to `/home/jsmith/.gnupg/S.gpg-agent': No such file or directory

With a helping of:

pinentry-curses: no LC_CTYPE known - assuming UTF-8

ewwhite
  • 197,159
  • 92
  • 443
  • 809

1 Answers1

1

You can still install the gnupg (v1) package in Fedora, so it might be available in CentOS as well. You can have both gnupg and gnupg2 installed at the same time in Fedora.

Alternatively, to get gpg2 to work how you expect (i.e., for the --passphrase* options to actually do anything) you need to use the --batch option.

rsaw
  • 253
  • 2
  • 5
  • Thanks... I went down this path and installed a specific gpg1 package. – ewwhite Sep 19 '14 at 00:22
  • Where did you find this gpg1 package? – cjm May 03 '18 at 17:16
  • @cjm in Fedora the old gpg1 rpm is called `gnupg` and the newer one is called `gnupg2`, but really, there's virtually no reason to be using gpg1 now on a new install. – rsaw May 04 '18 at 06:29
  • @rsaw, I'm looking for a CentOS 6 package. It only seems to have `gnupg2`. The reason is I'm using gpg to do symmetric encryption with a passphrase, have no use for the agent, and I'm tired of seeing this warning message. – cjm May 04 '18 at 20:26
  • @cjm Create a new question and ping it to me. – rsaw May 07 '18 at 02:50