GNUPG/PHP problems

From: Date: Tue, 12 Dec 2000 17:37:42 +0000
Subject: GNUPG/PHP problems
Groups: php.general 
Request: Send a blank email to php-general+get-29910@lists.php.net to get a copy of this message
I'm having problems with the following code. I keep getting "Public Key not found" errors. I'm sure I've listed the key correctly and the ISP swears that he added the key to "www"s key ring and the putenv directory is correct. putenv("GNUPGHOME=/var/www/.gnupg"); $fp = fopen("/usr/home/dogma/spad/indata", "w+"); fputs($fp, $email); fclose($fp); system("/usr/local/bin/gpg --encrypt -ao /usr/home/dogma/spad/outdata -r 'Joe Schmoe <jschmoe@building.com' /usr/home/dogma/spad/indata "); unlink("/usr/home/dogma/spad/indata"); $crypted = "/usr/home/dogma/spad/outdata"; $fd = fopen($crypted, "r"); $email = fread($fd, filesize($crypted)); fclose($fd); unlink("$crypted"); Any ideas where to look next? Thanks in advance, Tom >>.>>.>>>.>>>>>.>>>>>>>>> Tom Beidler Orbit Tech Services 805.455.7119 (cell) 805.682.8972 (phone) 805.682.5833 (fax) tbeidler@mindspring.com >>.>>.>>>.>>>>>.>>>>>>>>>

« previous php.general (#29910) next »