Unable to run gpg command in JAVA

nishant sonone nishant.sonone at gmail.com
Thu Aug 14 02:24:28 CEST 2008


Hello All,

I am porting an existing perl-mason code to java.
I need to create certificates for certain inputs.
The command used on perl-mason was

open(COMMAND, "echo $text | gpg --homedir $ENV{HOME}/.gnupg -s -u \"The
Certificate Key\" |");
my $enc = join('',<COMMAND>);
my $encCert = encode_base64($encrypted);

When i tried to use the dame command in java, its not able to recognize the
input to '-u' option.
I think java is not able to interpret the spaces between the words of input
string  \"The Certificate Key\".

Can anyone help me with this?

-- 
Thanks & Regards,
Nishant Sonone
Graduate Student (MS)
University of Southern California http://www.usc.edu/
Los Angeles, California, USA

"Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning ! ! !"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20080813/a5b82773/attachment.htm>


More information about the Gnupg-users mailing list