in reply to GnuPG tie to gpg binary gives broken pipe error in CGI output

Thanks zentara, user nobody didn't have access but it doesn't fix anything. Actually the server should be coming in with my username, at least it makes files with my login on them. I also cannot do chown in this environment. Encryption to a public key should not require having one's own keys.. I didn't make keys for the account itself, and now that I try to I find there is not enough entropy in the system (literally) to generate keys, anyway.

fglock Thanks. I am not aware of using open2/3 but this is very useful information. I will certainly look at this some more.

Also thank you, jnarins. I believe I can fit perl 5.8 in the 100mb I have (yes it's sad) maybe I can cross compile from a sparc or cygwin? Will look at that. ..My main linux machine is waiting to be rescued from an untimely lobotomy, it resembles me).

  • Comment on Re: GnuPG tie to gpg binary gives broken pipe error in CGI output

Replies are listed 'Best First'.
Re: Re: GnuPG tie to gpg binary gives broken pipe error in CGI output
by mattr (Curate) on Mar 09, 2003 at 10:59 UTC
    I am testing the code from fglock's link. Interesting, I am able to run shell commands and confirmed the cgi definitely is coming in with my id and current dir, yet even though I have a .gnupg directory (not in current dir though) I get "gpg: fatal: ~/.gnupg: can't create directory: No such file or directory" when trying --list-keys.

    Also it isn't possible to generate a key fwiw due to lack of entropy (never had that problem before. ;|

    Update:..which error is solved by adding $ENV{"GNUPGHOME"}="/home/www/myusername/.gnupg"; thanks to this googled link.

    That thread inspired me to try GnuPG::Interface which is the successor to PGP::GPG::MessageProcessor which is discussed there.