I am writing a script which takes a text document then digitally signs it using
gpg software and then emails the signed document using the mail function.
The command which I put into Linux to sign the document is as follows:
gpg --clearsign --passphrase-fd 0 /var/www/html/domains/TextFiles/athernet.co.uk.txt < /home/jamal/gnupg-1.4.1/pass.txt
athernet.co.uk.txt is the document I am signing and the file pass.txt passes a password to the command so you don't have to put the password in to use the key when you sign a document (needed to run the command from the PHP script)
I am trying to run the command from my PHP file as:
exec("gpg --clearsign --passphrase-fd 0 var/www/html/domains/TextFiles/athernet.co.uk.txt < /home/jamal/gnupg-1.4.1/pass.txt");
I think it is a problem with the exec statement? Any ideas?