From owner-freebsd-questions Sat Nov 4 13: 7: 5 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ghost.blacktrap.net (20-230.CampusNet.ucl.ac.be [130.104.20.230]) by hub.freebsd.org (Postfix) with ESMTP id 5016F37B4C5 for ; Sat, 4 Nov 2000 13:07:01 -0800 (PST) Received: from anoat.blacktrap.net (anoat [192.168.1.11]) by ghost.blacktrap.net (8.11.1/8.11.0) with ESMTP id eA4L6xG48730; Sat, 4 Nov 2000 22:06:59 +0100 (CET) (envelope-from lex@blacktrap.net) Received: (from lex@localhost) by anoat.blacktrap.net (8.11.1/8.11.0) id eA4KtBh01602; Sat, 4 Nov 2000 21:55:11 +0100 (CET) (envelope-from lex) Date: Sat, 4 Nov 2000 21:55:11 +0100 From: Chive To: Chris Sheppard Cc: freebsd-questions@FreeBSD.ORG Subject: Re: PGP encryption of www cgi forms Message-ID: <20001104215511.A1399@blacktrap.net> References: <3A035DC3.5889.1ABEB69@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A035DC3.5889.1ABEB69@localhost>; from cpfs@laminar.co.uk on Sat, Nov 04, 2000 at 12:52:19AM -0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Nov 04, 2000 at 12:52:19AM -0000, Chris Sheppard wrote: > I'm trying to use a perl cgi script to encrypt the results of a feedback form > and then email it. I've installed PGP 2.6.3i and everyting works fine as long > as you run the script from the command line. However, if I run it from a www > cgi form the PGP program tries to communicate with the perl script as if it is > an interactive user and asks for random key presses! > You need to have pgp run in batch mode so that it does not ask the user anything. This was improved in the more recent versions (pgp5 and gnupg) but is also possible in pgp2, you might want to look how they did it in `mutt' (or any program that uses pgp as an external program for that matter) if it is not specified in pgp2 doc. -- Chive. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message