Re: Help getting PHP and GPG to work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks so much for the response Jason,

I am sure glad somebody got it...good to know I'm on the right track. 

I have a key pair setup but I don't think they are named correctly...I could use some guidance on how the server is named and how to name your public keys to match..The other issuse is how to handle the ownership of the files like owner "nobody". that php sets up. This is where my script stops. I have a temp input directory that the data writes too. Now if I can get it to write to the temp output directory we'll be rockin... Anyway, half of the script is working. 

Any help here is really appreciated.

zedleon

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?


----- Original Message ----- 
  From: Jason Petersen 
  To: zedleon 
  Cc: php-general@xxxxxxxxxxxxx 
  Sent: Monday, January 09, 2006 7:23 PM
  Subject: Re:  Help getting PHP and GPG to work




  On 1/9/06, zedleon <support@xxxxxxxxxxxxxx> wrote:
    Has anybody had success using PHP and GPG to send encripted email from a
    form?


  Yes.  You're on the right track.  The method I used was to create a temp file with my data, encrypt it with GPG, read it back into a string, then mail() it.   (Of course it goes without saying that care should be taken to restrict possible access to the tempfiles, and delete them when they're no longer needed) 

  Have you set up a public key for the web server (httpd)?

  Jason

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux