RE: [PHP] PHP & PGP
| From: | David Price | Date: | Fri, 29 Jun 2001 01:51:08 +0000 |
| Subject: | RE: [PHP] PHP & PGP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-55553@lists.php.net to get a copy of this message | ||
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:lopez@pepe-lopez.com]
Sent: Thursday, June 28, 2001 7:06 AM
To: php-general@lists.php.net
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: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net