On 1/9/06, Support <support@xxxxxxxxxxxxxx> wrote: > > > quote for the book- > > "PHP scripts will invoke the encryption process, and the public key has to > be > on the key ring of the user invoking the encryption. On the Web server, > PHP > usually runs as user "nobody" or "www" or as the user for your Web server. > It could even be your own login name. Whichever user is assigned to > PHP/the > Web server, "nobody", "www," etc. must have a GnuPG key ring, and that key > ring needs to contain the public key for any person to whom you wish to > send > encrypted mail by using PHP to invoke the encryption process." > so how does one find out what the name would be? > > This is getting more into server configuration than strictly PHP. I'll try to help, but I'm not a professional system administrator. These steps worked for me, but follow these instructions at your own risk. You will probably need root access on your server. $ su - Most distributions don't allow the web server account to log in by default. Edit /etc/passwd to (temporarily) allow access. # vi /etc/passwd Search for "httpd" or "apache". When you find it, change the last part (/bin/false) to /bin/sh Note the home directory - you may need to create it. # mkdir /home/httpd And set permissions # chown apache:apache /home/httpd Now, switch to the web server account # su apache And generate a GPG key: $ gpg --gen-key Read the GPG documentation to learn how to import and export keys. When you're done, don't forget to edit /etc/password and set apache's shell back to /bin/false. Hope this helps! Jason