PHP and GPG SOLVED

From: Date: Thu, 07 Nov 2002 16:19:45 +0000
Subject: PHP and GPG SOLVED
Groups: php.general 
Request: Send a blank email to php-general+get-123182@lists.php.net to get a copy of this message
Ok, here's what I ended up with, and it worked: exec("HOME=\"/home/apache\";/bin/echo \"MYPASS\" | /usr/bin/gpg --no-tty --passphrase-fd 0 -o /path/to/decrypted/file -d /path/to/encrypted/file"); I had to do the HOME variable setting because according to the log file, GPG was looking for it's .gpg settings directory in / and it didn't have write permissions to create it there, so it kept dying, this way, it finds the directory where it is supposed to be. Feeeeeew. Adam Voigt adam.voigt@cryptocomm.com

« previous php.general (#123182) next »