It is possible, but I have not found any good tutorials on the subject.
There is one on Web Monkey at this address:
http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial1.html
All the commands were wrong for the PGP version (6.5) that was loaded on my
web server. I found that the following worked:
1. Make sure you know where PGP is located on the server. Try a whereis
pgp. On my system it was installed in /usr/bin.
2. Make sure the nobody (or the user the web server runs as) user has a
home directory defined in your passwd file. This will cause problems when
you setup the key ring. (do not define a shell for this user!)
3. Copy an ASCII version of your public key into a file that the nobody user
can access.
4. su into the nobody account
5. Create a signing key for the nobody user this this command:
pgp -kg
There is no need to create an encryption key.
6. Add your public key to nobody's keying with this command:
pgp -ka /path/to/your/public/key
7. Assign an trust level to the key:
pgp -ke 'Usuerid'
If you don't know the userid for the key use pgp -kvv to find out
8. Sign the key with:
pgp -ks 'your user id' -u 'their userid'
Then the form and php script in the Web monkey tutorial should work. Let me
know if this helps and good luck.
David Price
-----Original Message-----
From: Pepe Lopez [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 7:06 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP & PGP
Hi there,
I want to encrypt mails coming from my webform with pgp. Is it possible?
regards,
Lopez
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]