<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Have you added the USB stick’s drive and GPG folder address to your PATH?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Larry<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Gpg4win-users-en [mailto:gpg4win-users-en-bounces@wald.intevation.org] <b>On Behalf Of </b>L<br><b>Sent:</b> Wednesday, July 08, 2015 12:12 PM<br><b>To:</b> gpg4win-users-en@wald.intevation.org<br><b>Subject:</b> [Gpg4win-users-en] Is there a way to operate Gpg via command line portably from a USB stick<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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>> Hi,<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > On Tuesday, July 07, 2015 03:52:51 PM Kent Hurtig wrote:<br><br><o:p></o:p></p><p class=MsoNormal> >> I have created a batch job that encrypts a file using<o:p></o:p></p><p class=MsoNormal> GnuPG software. When<br><br><o:p></o:p></p><p class=MsoNormal> >> I run the batch file from the server where the file<o:p></o:p></p><p class=MsoNormal> resides, it runs<br><br><o:p></o:p></p><p class=MsoNormal> >> successfully and encrypts the file. When I run the batch<o:p></o:p></p><p class=MsoNormal> job through<br><br><o:p></o:p></p><p class=MsoNormal> >> Oracle Enterprise Manager(the software that we schedule<o:p></o:p></p><p class=MsoNormal> our batch jobs<br><br><o:p></o:p></p><p class=MsoNormal> >> through), the task which encrypts the file using gpg<o:p></o:p></p><p class=MsoNormal> encounters several<br><br><o:p></o:p></p><p class=MsoNormal> >> issues. I have attached the output from this task. <br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > Not serveral issues, Just one:<br><br><o:p></o:p></p><p class=MsoNormal> > gpg: E:\\Test\\ECSI_Perkins_Loan_Test\\TESTbldpromIG.csv:<o:p></o:p></p><p class=MsoNormal> encryption failed: <br><br><o:p></o:p></p><p class=MsoNormal> > No public key<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> >> I should mention that<br><br><o:p></o:p></p><p class=MsoNormal> >> I previously had the same issue on our old "Media"<o:p></o:p></p><p class=MsoNormal> windows server 2003. To<br><br><o:p></o:p></p><p class=MsoNormal> >> correct the issue, I changed the gpg command to be more<o:p></o:p></p><p class=MsoNormal> verbose and saw<br><br><o:p></o:p></p><p class=MsoNormal> >> that the process was being ran as the default user and<o:p></o:p></p><p class=MsoNormal> not as user<br><br><o:p></o:p></p><p class=MsoNormal> >> aunt_bee. I copied the gpg.conf, pubring.gpg,<o:p></o:p></p><p class=MsoNormal> secring.gpg, trustdb.gpg<br><br><o:p></o:p></p><p class=MsoNormal> >> and trust.gpg.lock from C:\Documents and<o:p></o:p></p><p class=MsoNormal> Settings\aunt_bee\Application<br><br><o:p></o:p></p><p class=MsoNormal> >> Data\gunpg to C:\Documents and Settings\Default<o:p></o:p></p><p class=MsoNormal> User\Application Data\gnupg<br><br><o:p></o:p></p><p class=MsoNormal> >> on Media, reran the Oracle Enterprise Manager job and it<o:p></o:p></p><p class=MsoNormal> finished<br><br><o:p></o:p></p><p class=MsoNormal> >> successfully.<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > For encryption gnupg needs to find the public key of the<o:p></o:p></p><p class=MsoNormal> recipient. This key is <br><br><o:p></o:p></p><p class=MsoNormal> > contained in pubring.gpg.<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > GnuPG looks for this file by default in %APPDATA%\gnupg<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > This apperantly expands in your environment to: <br><br><o:p></o:p></p><p class=MsoNormal> ><o:p></o:p></p><p class=MsoNormal> C:/Windows/system32/config/systemprofile/AppData/Roaming/gnupg<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > To change this you can add --homedir<o:p></o:p></p><p class=MsoNormal> <path_to_gnupg_homedir> and gnupg will <br><br><o:p></o:p></p><p class=MsoNormal> > then look in that directory for the keyring.<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > For example:<br><br><o:p></o:p></p><p class=MsoNormal> > -> Create a directory c:\gnupg<br><br><o:p></o:p></p><p class=MsoNormal> > -> Copy the pubring.gpg (and gpg.conf if you have options<o:p></o:p></p><p class=MsoNormal> in there) into that <br><br><o:p></o:p></p><p class=MsoNormal> > directory.<br><br><o:p></o:p></p><p class=MsoNormal> > -> extend your command to include --homedir c:\gnupg in<o:p></o:p></p><p class=MsoNormal> the arguments.<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > Now as long as that Batch user has read access to c:\gnupg<o:p></o:p></p><p class=MsoNormal> this should work.<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > Regards,<br><br><o:p></o:p></p><p class=MsoNormal> > Andre<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > _______________________________________________<br><br><o:p></o:p></p><p class=MsoNormal> > Gpg4win-users-en mailing list<br><br><o:p></o:p></p><p class=MsoNormal> > <a href="mailto:Gpg4win-users-en@wald.intevation.org">Gpg4win-users-en@wald.intevation.org</a><br><br><o:p></o:p></p><p class=MsoNormal> ><o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><a 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><br><br><o:p></o:p></p></div></body></html>