[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] PGP for dummys



On Thursday 09 May 2002 02:42 pm, Brian Rahill wrote:
> >OK @enc_data is supposed to be an array of lines of the encrypted data
> >So I guess it is ""  [null string]
>
> I'm no Perl guru but these are the lines AFAIK that do all the PGP work:
>
> $data =~ s/\$/\\\$/g;
> print "sec=/home/sites/$hostname/users/$username/.gnupg<br>";
> @enc_data = `echo "$data" | gpg --always-trust -at -e -r
> $Config{'recipient'} --homedir
> /home/sites/$hostname/users/$username/.gnupg`;
>
I hardcoded it and it still did not work...
I used /usr/local/gpg  and it NOW works... 8 hours <groan>

$data =~ s/\$/\\\$/g;
print "sec=/home/sites/home/users/admin/.gnupg<br>";
@enc_data = `echo "$data" | /usr/local/bin/gpg --always-trust -aer keyname 
--homedir /home/sites/home/users/admin/.gnupg`;

-- 
Gerald Waugh 
http://www.frontstreetnetworks.com :: Phone. [011] 203.785.0699
Front Street Networks LLC | SOHO Networks & Web Site Hosting
229 Front Street, Ste. #C, New Haven, CT, 06513-3203 United States