| Richard Frenkel 2004-09-16, 3:56 pm |
| I am trying to move a program that uses pgp from a cgi and am running
into problems. Both boxes are Linux. A simple program like the
following works on the old server but not the new:
$ENV{'PGPPATH'} = "/home/kidsart/pgp/pgp6/keyrings";
### this fails!
open(PGP,"/home/kidsart/pgp/pgp6/pgp -kv rich\@infoboard.com |");
while(<PGP> ) {print $_;}
### this works!
open(PGP,"/home/kidsart/pgp/pgp6/pgp -kv rich\@infoboard.com
/home/kidsart/pgp/pgp6/keyrings/pubring.pkr|");
while(<PGP> ) {print $_;}
On the old server, both find the key, on the new server only the
second one does. PGPPATH lets pgp know where to look for keyrings. For
various reasons I need PGPPATH to work.
Any ideas welcome.
Here is more complete output:
## using PGPPATH
Can't open default key ring file
Keyring view error.
## using as a param
Key ring: '/home/kidsart/pgp/pgp6/keyrings/pubring.pkr'Looking for
user ID "rich@infoboard.com".
Type bits keyID Date User ID
RSA 1024 0x2FF50EAF 1997/08/18 Richard Frenkel
<rich@infoboard.com>
1 matching key found.
UNAME...
Linux serve.wwwroot18.net 2.4.22-1.2197.nptlsmp #1 SMP Thu Jul 1
15:07:03 EDT 2004 i686 athlon i386 GNU/Linux
PERL VERSION...
This is perl, v5.8.3 built for i386-linux-thread-multi
ENV...
PGPPATH=/home/kidsart/pgp/pgp6/keyrings
HTTP_KEEP_ALIVE=300
HTTP_USER_AGENT=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.4b) Gecko/20030507
SERVER_PORT=80
HTTP_HOST=www.kidsart.com
HTTP_ACCEPT_CHARSET=ISO-8859-1,utf-8;q=0.7,*;q=0.7
DOCUMENT_ROOT=/home/kidsart/public_html
|