gpg called from apache

Chris Mason masonc@masonc.com
Mon Jun 4 22:01:01 2001


I have written a php class that allows apache to encrpyt an email to the
users gpg key.
The trick is to su to the user apache runs as and ssh-keygen as that user in
the users home dir.
Then import the target users keys to the keyring.
I can copy you the source code if it will help.

-----Original Message-----
From: gnupg-users-admin@gnupg.org [mailto:gnupg-users-admin@gnupg.org]On
Behalf Of Jan Schneider
Sent: Monday, June 04, 2001 2:21 PM
To: gnupg-users@gnupg.org
Subject: gpg called from apache


Hi,

I'm just implementing gpg support into imp (webmail client).
As the gpg executing process is the apache server there are some problems
using
gpg.

gpg tries to access root's secring and isn't allowed of course because of
missing rights. Is there a way to call gpg to at least verify signed
messages
without attempting to access the user's secring?

If I'll go further on there will be the need to encrypt/decrypt/sign
messages
for the webmail user. Because these users don't always have an account on
the
machine running apache/gpg it would be great if you can supply keyrings to
gpg
not from the filesystem but from stdin or some other way. Any ideas?

Thanks for your comments,
Jan.


::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld fon +49.521.96878-0 :: fax +49.521.96878-20 http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users