<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Is there a way to use Gpg via windows command line terminal with Gpg
installed on USB stick? No attempt I have made to do this, with Gpg
installed on USB stick and accessible to Thunderbird/Enigmail, has
worked. At best I can nevigate to the Gpg folder, and activate its
.exe, but entering Gpg commands produces only an unknown command
response.<br>
<br>
On 7/7/2015 9:10 AM, Andre Heinecke wrote:<br>
<span style="white-space: pre;">> Hi,<br>
><br>
> On Tuesday, July 07, 2015 03:52:51 PM Kent Hurtig wrote:<br>
>> I have created a batch job that encrypts a file using
GnuPG software. When<br>
>> I run the batch file from the server where the file
resides, it runs<br>
>> successfully and encrypts the file. When I run the batch
job through<br>
>> Oracle Enterprise Manager(the software that we schedule
our batch jobs<br>
>> through), the task which encrypts the file using gpg
encounters several<br>
>> issues. I have attached the output from this task. <br>
><br>
> Not serveral issues, Just one:<br>
> gpg: E:\\Test\\ECSI_Perkins_Loan_Test\\TESTbldpromIG.csv:
encryption failed: <br>
> No public key<br>
><br>
>> I should mention that<br>
>> I previously had the same issue on our old "Media"
windows server 2003. To<br>
>> correct the issue, I changed the gpg command to be more
verbose and saw<br>
>> that the process was being ran as the default user and
not as user<br>
>> aunt_bee. I copied the gpg.conf, pubring.gpg,
secring.gpg, trustdb.gpg<br>
>> and trust.gpg.lock from C:\Documents and
Settings\aunt_bee\Application<br>
>> Data\gunpg to C:\Documents and Settings\Default
User\Application Data\gnupg<br>
>> on Media, reran the Oracle Enterprise Manager job and it
finished<br>
>> successfully.<br>
><br>
> For encryption gnupg needs to find the public key of the
recipient. This key is <br>
> contained in pubring.gpg.<br>
><br>
> GnuPG looks for this file by default in %APPDATA%\gnupg<br>
><br>
> This apperantly expands in your environment to: <br>
>
C:/Windows/system32/config/systemprofile/AppData/Roaming/gnupg<br>
><br>
> To change this you can add --homedir
<path_to_gnupg_homedir> and gnupg will <br>
> then look in that directory for the keyring.<br>
><br>
> For example:<br>
> -> Create a directory c:\gnupg<br>
> -> Copy the pubring.gpg (and gpg.conf if you have options
in there) into that <br>
> directory.<br>
> -> extend your command to include --homedir c:\gnupg in
the arguments.<br>
><br>
> Now as long as that Batch user has read access to c:\gnupg
this should work.<br>
><br>
> Regards,<br>
> Andre<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Gpg4win-users-en mailing list<br>
> <a class="moz-txt-link-abbreviated" href="mailto:Gpg4win-users-en@wald.intevation.org">Gpg4win-users-en@wald.intevation.org</a><br>
>
<a class="moz-txt-link-freetext" href="https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/gpg4win-users-en">https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/gpg4win-users-en</a></span><br>
<br>
<br>
</body>
</html>