SUCCESS. Thank you all very much.

I got both GnuPG::Interface and the code with Open3 working. GnuPG::Interface built okay on perl 5.005_03/FreeBSD 4.3 after also building Class::MethodMaker and editting my way around some tests. This no longer needed me to set $ENV{GNUPGHOME} as this is done in an init hash with the Interface module. A final hurdle was to get gpg's stderr and debug it, as explained below.

Since I gave the server no key pair of its own, gpg was unable to trust an imported public key even though I told it to do so using the --edit-key function. It was necessary to edit the options file in the .gnupg directory to designate an ultimately trusted key to stop gpg from trying to validate it and failing. Also the key had to be designated as a "long key id", which is found (as the options file comment says) embedded in the output of gpg --list-key --with-colons (which is not the fingerprint).

I was able to download the ascii-armored encrypted file and easily decrypt it with WinPT, which also worked well on a clipboard copied off a browser window.

I will use GnuPG::Interface, and see if I can post something here after cleaning it up. Many thanks!


In reply to Re: GnuPG tie to gpg binary gives broken pipe error in CGI output by mattr
in thread GnuPG tie to gpg binary gives broken pipe error in CGI output by mattr

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.