Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

gpg: malformed GPG_AGENT_INFO environment variable

#1053

Hi,

Trying to sign any message fails in MailMate version 1.8 (4576) (but works fine in Mail) with such debug message:

gpg2 --no-verbose --batch --no-tty --openpgp --status-fd 2 --digest-algo SHA1 --textmode --armor --detach-sign --local-user "user@domain" Input string (50): "Content-Type: text/plain\r\n\r\nGPG signature test" Result: Failure Output string (506): "-----BEGIN PGP SIGNATURE-----\nComment: GPGTools - http://gpgtools.org\n\niQEcBAEBAgAGBQJU64kTAAoJEGW0TPua+mTjB8MIANuN...; Detail: [GNUPG:] USERID_HINT 65B44CFB9AFA64E3 User user@domain Detail: [GNUPG:] NEED_PASSPHRASE 65B44CFB9AFA64E3 65B44CFB9AFA64E3 1 0 Detail: gpg: malformed GPG_AGENT_INFO environment variable Detail: [GNUPG:] GOOD_PASSPHRASE Detail: [GNUPG:] BEGIN_SIGNING H2 Detail: [GNUPG:] SIG_CREATED D 1 2 01 1424722195 881A564856D04D98AA3A99C765B44CFB9AFA64E3

Any idea why it doesn't like GPG_AGENT_INFO?

I see it is set like this:

$ echo $GPG_AGENT_INFO /private/tmp/com.apple.launchd.WtXkX7A4xk/Listeners_agent

Yours,
Aleksey

Reported by Aleksey · February 23rd, 2015 @ 09:57 PM

State: resolved
Milestone: none
Assigned to: benny benny

Activity

  1. benny
    benny
    • State changed from new to cantreproduce

    That value (GPG_AGENT_INFO) is not set at all for me. I assume (based on the output) that you have gpg2 installed via GPGTools? But maybe you have something left over from another/older install?

    From the documentation I found googling, it also seems the value is invalid.

    (Note that I'm not an expert in the internal workings of gnupg.)

    February 24th, 2015 @ 04:21 PM

  2. Aleksey
    Aleksey

    Oh!

    Thanks for pointing this. I found that the issue was caused by gpg2 installed from MacPorts.

    Please close the case :)

    Yours,
    Aleksey

    February 24th, 2015 @ 05:48 PM

  3. benny
    benny
    • State changed from cantreproduce to resolved

    February 24th, 2015 @ 07:40 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.