<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>Hi Robert.</div>
<div> </div>
<div>I'm not sure if we're closer or not. I plugged in the –no-default-keyring and –keyring “name”</div>
<div> </div>
<div>Command line I'm pushing to GnuPG: C:\Program Files\GnuPG\bin\gpg.exe --verbose --batch --trust-model always --pinentry-mode loopback --no-default-keyring --keyring "C:\Users\RickRustad\AppData\Roaming\gnupg\pubring.kbx" --recipient " XXXXXXX " --encrypt</div>
<div> </div>
<div>Error message echo'd back to my trace log:</div>
<div>   gpg: enabled debug flags: memstat trust extprog</div>
<div>gpg: XXXXXXX: skipped: No public key</div>
<div>gpg: [stdin]: encryption failed: No public key</div>
<div>gpg: keydb: handles=1 locks=0 parse=0 get=0</div>
<div>gpg:        build=0 update=0 insert=0 delete=0</div>
<div>gpg:        reset=0 found=0 not=1 cache=0 not=0</div>
<div>gpg: kid_not_found_cache: count=0 peak=0 flushes=0</div>
<div>gpg: sig_cache: total=0 cached=0 good=0 bad=0</div>
<div>gpg: random usage: poolsize=600 mixed=0 polls=0/0 added=0/0</div>
<div>              outmix=0 getlvl1=0/0 getlvl2=0/0</div>
<div>gpg: rndjent stat: collector=0x00000000 calls=0 bytes=0</div>
<div>gpg: secmem usage: 0/32768 bytes in 0 blocks</div>
<div> </div>
<div><font face="Calibri">Any other suggestions?</font></div>
<div> </div>
<table width="975" style="width:585pt;">
<col width="975" style="width:585pt;">
<tr height="11" style="height:7.15pt;">
<td><b>Rick Rustad </b>| Senior Dynamics GP Developer at Enavate Managed Services, a DXC Services Partner
<div><font color="#404040">Mobile +1 701 428 9900| Office +1 720 577 5027<font color="black"> </font>|<font color="black"> </font><font color="#4D4F53">E-mail rick.rustad@enavate.com</font></font></div>
<div><font color="#4D4F53">ENAVATE, Inc. | <font color="#0078D4">7887 E. Belleview Ave., Suite 600 </font>|<font color="#0078D4"> Englewood, CO 80111</font> | USA</font></div>
</td>
</tr>
</table>
<div>____________________________________________<br>

<b>From:</b> Rick Rustad <br>

<b>Sent:</b> Tuesday, December 17, 2019 9:54 AM<br>

<b>To:</b> Robert J. Hansen <rjh@sixdemonbag.org><br>

<b>Cc:</b> gnupg-users@gnupg.org<br>

<b>Subject:</b> RE: GnuPG v2.2.17.22805 with StarksoftCryptographyOpenPGP</div>
<div> </div>
<div> </div>
<div>Hi Robert.</div>
<div> </div>
<div>Found the file and I'll plug in your suggestion and run a test.</div>
<div> </div>
<div>Can I move that KBX file to the C:\Program Files\GnuPG folder for a more central location?</div>
<div> </div>
<div> << OLE Object: Picture (Device Independent Bitmap) >> </div>
<div> </div>
<div>Rick</div>
<div> </div>
<div>-----Original Message-----<br>

From: Robert J. Hansen <rjh@sixdemonbag.org> <br>

Sent: Tuesday, December 17, 2019 9:31 AM<br>

To: Rick Rustad <rick.rustad@enavate.com><br>

Cc: gnupg-users@gnupg.org<br>

Subject: RE: GnuPG v2.2.17.22805 with StarksoftCryptographyOpenPGP</div>
<div> </div>
<div>On 2019-12-17 10:10, Rick Rustad wrote:</div>
<div>> So very glad you responded.</div>
<div> </div>
<div>We try to be helpful.  We sometimes fail, but we try.  :)</div>
<div> </div>
<div>> I see a bigger issue looming. If this customization I'm working on </div>
<div>> will be used by many people and thus the encryption and signature </div>
<div>> processing will be utilized by the same many people, is there a way to </div>
<div>> override or tell the command line argument to GnuPG to not be user </div>
<div>> specific?</div>
<div> </div>
<div>Yep.  Use both "--no-default-keyring" and "--keyring".  For instance:</div>
<div> </div>
<div>$ gpg --no-default-keyring --keyring \path\to\pubring.kbx --list-keys</div>
<div> </div>
<div>However, as of GnuPG 2.2 you can no longer specify private keys this way.  There used to be an option, "--secret-keyring", which was used just like "--keyring", but it's obsolete and now does nothing.</div>
<div> </div>
<div>> In one of my tests I replaced "--recipient" with "--default-recipient"</div>
<div>> but it had no affect, same error message.</div>
<div> </div>
<div>Yeah, that's expected and doesn't shed much light on the matter.</div>
<div> </div>
<div>ATTENTION: This email was sent to Enavate from an external source. Please be extra vigilant when replying, opening attachments or clicking links.</div>
<div> </div>
<div> </div>
</span></font>
</body>
</html>