executing from the web
Armin Schöch
schoech@iap-kborn.de
Mon Feb 11 09:22:01 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello Andre !
> I need to send an encrypted email using gpg, after a user has completed a
> form. I have found several php code solutions to this problem but all of
> them have seem to give the same error. When i run the commands with
> an --output option the file is never created. I am really confused by thi=
s.
> The temp dir that the file is being written to is writable by the world, =
but
> the temp encoded file is never generated. Here is an example of the comma=
nd
> that i execute:
>
> /usr/bin/gpg -e -a -q --batch --no-tty --homedir '/home/kinetec/.gnupg' -=
o
> '/tmp/9343c2ddab82b7288eaf51afea671f4f.gpg' -r
> '0x0F5B3D6F' --no-secmem-warning --default-key '0x055A5279' 2>&1
Is your keyring protected by a passphrase ? Then you have to supply it
to gpg by using
echo passphrase | /usr/bin/gpg --passphrase-fd 0 -e -a .......
HTH,
Armin
- --
Am Hasenberg 26 office: Institut für Atmosphärenphysik
D-18209 Bad Doberan Schloss-Straße 6
Tel. 0160/4046859 (mobil) D-18225 Kühlungsborn / GERMANY
Email: schoech@iap-kborn.de Tel. +49-(0)38293-68-102
WWW: http://armins.cjb.net/ Fax. +49-(0)38293-68-50
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Weitere Infos: siehe http://www.gnupg.org
iD8DBQE8Z36AG8Xv4GxznLoRAggtAJ9QHh4E3crFyKu91jf7wvXq6l/XbQCff1Rd
EuabXAt7aNlt3mAb90JklFI=
=xaxI
-----END PGP SIGNATURE-----