Re: [PHP] Mail-Encryption
On Fri, 9 Feb 2001, Christian Reiniger wrote: > > This returns echoes the part after the | in safe-mode. > echo only outputs something. it doesn't return anything. Yup, grammar error, I meant "prints to stdout" :) > Write > $comm = "$data | " . $this->gpg_command; Didn't work that way :( > and: > $this->gpg-kommand is an illegal (no minus in identifiers!) Certainly, my typo in the post :) Thank you. Rodolfo. -- 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]
Re: [PHP] Mail-Encryption
On Thu, 8 Feb 2001, Richard Lynch wrote: > Maybe you can create a custome keyring for just the web-usage of public keys > only... Hum... I wouldn't like it, anyway. Hmmm, is there any other way to pass "stdin" to an external program, other than using echo and a pipe?. I've also tried by placing echo and gpg in the php "exec dir" and chown'ing them to the uid.gid of the php script, and it didn't work. Thanks. -- 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]
Re: [PHP] Mail-Encryption
On Wednesday 07 February 2001 22:42, Rodolfo Gonzalez Gonzalez wrote: > I found a pgp class and took parts of it to work with gpg, but it > doesn't work in safe-mode. I'm using this pipe to pass the data to > encrypt to gpg: > >$comm = "echo '$data' | $this->gpg-commmand"; >$fd = popen("$comm","r"); > This returns echoes the part after the | in safe-mode. echo only outputs something. it doesn't return anything. Write $comm = "$data | " . $this->gpg_command; and: $this->gpg-kommand is an illegal (no minus in identifiers!) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Software is like sex: the best is for free" -- Linus Torvalds -- 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]
Re: [PHP] Mail-Encryption
I don't know... Never used safe mode. I *think* you would have to have all the files under your web-tree, but that might make gpg rather unsuitable. If your private key-ring file is in your web-tree, it's maybe just a little too exposed... Maybe you can create a custome keyring for just the web-usage of public keys only... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Rodolfo Gonzalez Gonzalez <[EMAIL PROTECTED]> To: Richard Lynch <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, February 07, 2001 3:42 PM Subject: Re: [PHP] Mail-Encryption > On Thu, 8 Feb 2001, Richard Lynch wrote: > > > You can find a long-winded post from me a year or two ago about my trials > > and tribulations (and a *lot* of help from others to get me going). > > I found a pgp class and took parts of it to work with gpg, but it doesn't > work in safe-mode. I'm using this pipe to pass the data to encrypt to gpg: > >$comm = "echo '$data' | $this->gpg-commmand"; >$fd = popen("$comm","r"); > >if (!$fd) { > return -2; >} > >$encrypted = ""; >while (!feof($fd)) { > $encrypted .= fgets($fd,4096); >} > >pclose($fd); > > This returns echoes the part after the | in safe-mode. How could this work > in this mode?. > > Thank you. > Rodolfo. > > -- 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]
Re: [PHP] Mail-Encryption
On Thu, 8 Feb 2001, Richard Lynch wrote: > You can find a long-winded post from me a year or two ago about my trials > and tribulations (and a *lot* of help from others to get me going). I found a pgp class and took parts of it to work with gpg, but it doesn't work in safe-mode. I'm using this pipe to pass the data to encrypt to gpg: $comm = "echo '$data' | $this->gpg-commmand"; $fd = popen("$comm","r"); if (!$fd) { return -2; } $encrypted = ""; while (!feof($fd)) { $encrypted .= fgets($fd,4096); } pclose($fd); This returns echoes the part after the | in safe-mode. How could this work in this mode?. Thank you. Rodolfo. -- 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]
Re: [PHP] Mail-Encryption
> I want to send mails via the "mail"-command which are encrypted and > which uses the certificates used by Netscape Messenger and Outlook (if > you export the files, it's extention is .p12). > > - How do I generate such keys (in general) ? Install gnupg (http://gnupg.org) or PGP and use http://php.net/exec I guess... You can find a long-winded post from me a year or two ago about my trials and tribulations (and a *lot* of help from others to get me going). > - How can I send an encrypted email from an Unix-Server (with php) ? You would encrypt it with the private key (read gnupg docs) and then just use http://php.net/mail At least, I think that's all you need to do... You might have to use Manuel Lemos mail class to *attach* the *signature* which is encrypted, if that's what you mean... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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] Mail-Encryption
Hello ! I want to send mails via the "mail"-command which are encrypted and which uses the certificates used by Netscape Messenger and Outlook (if you export the files, it's extention is .p12). - How do I generate such keys (in general) ? - How can I send an encrypted email from an Unix-Server (with php) ? Regards Martin -- 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]