This is a somewhat odd question. As the practice is generally not of the highest quality.
I'm running a copy of
gnuPG as my encryption engine. Runs great. I love it. I've come to the point where I need it set up on other machines, run via
open ("| gnupg..... commands sent to
winNT via a nifty perl script.
If I import all the keys necessary, and set them to
fully trusted, gnuPG does not prompt to STDIN. If a key is not fully trusted, gnuPG peacefully complains and says "do you want to use this key, type yes". So you have to manually type "yes" on the command line.
I've tried opening via pipe for read, opening via pipe for print, all to no avail. A search (notice I didn't say quick ;)) around the monastery revealed some insight, but not a solution.
I'm just scared that the script will run, the user maintaing the pc will have forgotten to trust the key, and therefore the script will run forever..
The gnupg options of
--batch and
--yes do not answer key-trust questions. For reasons that seem somewhat obvious to me..
open(PROG,"| $gpg -ea -o cryptthis.txt.asc -r someguy cryptthis.txt")
+or die "$!";
print PROG "yes\n";
close(PROG);
Any thoughts? Links? Am I missing something completly obvious?
_14k4 -
perlmonks@poorheart.com (
www.poorheart.com)
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.