There is a problem calling GnuPG from a CGI. It is related to using open2/open3 (which your library probably uses).
There is some info here, I hope it helps.
In reply to Re: GnuPG tie to gpg binary gives broken pipe error in CGI output
by fglock
in thread GnuPG tie to gpg binary gives broken pipe error in CGI output
by mattr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |