<div dir="ltr"><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Hi folks,</p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">I am kind of stuck on this, hence reaching out to you guyz.</p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>
<h1 style="margin:0in 0in 0.0001pt;vertical-align:baseline;font-size:24pt;font-family:Calibri,sans-serif"><span style="font-size:11.5pt;font-family:Arial,sans-serif;color:rgb(36,39,41);font-weight:normal"><a href="https://stackoverflow.com/questions/64939717/gpg-is-promting-for-passphrase-even-though-passphrase-cache-is-set-in-gpg-agent"><span style="color:rgb(36,39,41);text-decoration-line:none">GPG is prompting
for passphrase even though passphrase cached in gpg-agent</span></a> (windows)</span></h1>
<h1 style="margin:0in 0in 0.0001pt;vertical-align:baseline;font-size:24pt;font-family:Calibri,sans-serif"><span style="font-size:11pt;font-weight:normal"> Following steps I did.</span></h1>
<p style="margin:0in 0in 0.0001pt 22.5pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;vertical-align:baseline;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11.5pt;color:rgb(36,39,41)">1.<span style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times New Roman""> </span></span><span style="font-size:11.5pt;color:rgb(36,39,41)">installed gpg on windows from <a href="https://gnupg.org/download/" style="font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;box-sizing:inherit"><span style="border:1pt none windowtext;padding:0in">https://gnupg.org/download/</span></a> (version
- 2.2.23)</span></p>
<p style="margin:0in 0in 0.0001pt 22.5pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;vertical-align:baseline;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11.5pt;color:rgb(36,39,41)">2.<span style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times New Roman""> </span></span><span style="font-size:11.5pt;color:rgb(36,39,41)">imported the key : - > gpg --import <key File name></span></p>
<p style="margin:0in 0in 0.0001pt 22.5pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;vertical-align:baseline;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11.5pt;color:rgb(36,39,41)">3.<span style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times New Roman""> </span></span><span style="font-size:11.5pt;color:rgb(36,39,41)">in home dir set the allow-preset-passphrase in gpg-agent.conf.</span></p>
<p style="margin-top:0in;margin-right:0in;margin-left:22.5pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;vertical-align:baseline;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;box-sizing:inherit;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11.5pt;color:rgb(36,39,41)">4.<span style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times New Roman""> </span></span><span style="font-size:11.5pt;color:rgb(36,39,41)">from powershell started agent</span></p>
<p style="margin:0in 0in 0.0001pt 22.5pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;vertical-align:baseline;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;box-sizing:inherit;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11.5pt;color:rgb(36,39,41)">"$gpgPath\bin\gpg-connect-agent.exe"
reloadagent /bye</span></p>
<p style="margin:0in 0in 0.0001pt 22.5pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;vertical-align:baseline;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11.5pt;color:rgb(36,39,41)"> </span></p>
<p style="margin-top:0in;margin-right:0in;margin-left:22.5pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;vertical-align:baseline;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;box-sizing:inherit;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11.5pt;color:rgb(36,39,41)">5.<span style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times New Roman""> </span></span><span style="font-size:11.5pt;color:rgb(36,39,41)">powershell set passphrase</span></p>
<p style="margin:0in 0in 0.0001pt 22.5pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;vertical-align:baseline;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;box-sizing:inherit;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11.5pt;color:rgb(36,39,41)">"$gpgPath\bin\gpg-preset-passphrase.exe"
-v -c -P "$pgpPassphrase"</span></p>
<p style="margin:0in 0in 0.0001pt 22.5pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;vertical-align:baseline;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;box-sizing:inherit;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11.5pt;color:rgb(36,39,41)">6.<span style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times New Roman"">
</span></span><span style="font-size:11.5pt;color:rgb(36,39,41)">mvn sign and deploy</span></p>
<pre style="vertical-align:baseline;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;box-sizing:inherit;max-height:600px;border-radius:5px;overflow:auto;margin-top:0in;margin-right:0in;margin-left:0in;font-size:10pt;font-family:"Courier New""><code style="font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;box-sizing:inherit;white-space:inherit;border-radius:0px;font-family:"Courier New""><span style="font-family:Consolas;border:1pt none windowtext;padding:0in">mvn gpg:sign-and-deploy-file -B</span></code></pre><pre style="vertical-align:baseline;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><code style="font-family:"Courier New""><span style="font-family:Consolas;border:1pt none windowtext;padding:0in">"-Dfile=E:\Publish\files-1.0.12-test.jar"</span></code></pre><pre style="vertical-align:baseline;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><code style="font-family:"Courier New""><span style="font-family:Consolas;border:1pt none windowtext;padding:0in">"-Durl=<a href="https://oss.sonatype.org/service/local/staging/deploy/maven2">https://oss.sonatype.org/service/local/staging/deploy/maven2</a>"</span></code></pre><pre style="vertical-align:baseline;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><code style="font-family:"Courier New""><span style="font-family:Consolas;border:1pt none windowtext;padding:0in">"-Drevision=1.0.12-test" "-DrepositoryId=ossrh"</span></code></pre><pre style="vertical-align:baseline;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><code style="font-family:"Courier New""><span style="font-family:Consolas;border:1pt none windowtext;padding:0in">"-Dversion=1.0.12-test" "-DgroupId=datamodel" "-DartifactId=files"</span></code></pre><pre style="vertical-align:baseline;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><code style="font-family:"Courier New""><span style="font-family:Consolas;border:1pt none windowtext;padding:0in">"-Dsources=E:\Publish\files-1.0.12-test-sources.jar"</span></code></pre><pre style="vertical-align:baseline;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><code style="font-family:"Courier New""><span style="font-family:Consolas;border:1pt none windowtext;padding:0in">"-Djavadoc=E:\Publish\files-1.0.12-test-javadoc.jar"</span></code></pre><pre style="vertical-align:baseline;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><code style="font-family:"Courier New""><span style="font-family:Consolas;border:1pt none windowtext;padding:0in">"-Dpackaging=jar" "-DpomFile=E:\Publish\pom.xml"</span></code></pre><pre style="vertical-align:baseline;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><code style="font-family:"Courier New""><span style="font-family:Consolas;border:1pt none windowtext;padding:0in"> </span></code></pre><pre style="vertical-align:baseline;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><code style="font-family:"Courier New""><span style="font-family:Consolas;border:1pt none windowtext;padding:0in"> </span></code></pre>
<p style="margin-top:0in;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;vertical-align:baseline;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;box-sizing:inherit;margin-right:0in;margin-left:0in;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11.5pt;font-family:Arial,sans-serif;color:rgb(36,39,41)">it prompted the passphrase, I already cached it at step 5.</span></p>
<p style="margin-top:0in;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;vertical-align:baseline;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;box-sizing:inherit;margin-right:0in;margin-left:0in;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11.5pt;font-family:Arial,sans-serif;color:rgb(36,39,41)">Not sure what is going wrong here .Is it a bug ? Few questions, really appreciate if any one can help or i</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt 22.5pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;vertical-align:baseline;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11.5pt;color:rgb(36,39,41)">1.<span style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times New Roman"">
</span></span><span style="font-size:11.5pt;color:rgb(36,39,41)">I don't see any option in windows, to
verify if passphrase has been cached . Does anyone know how to do that ?</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt 22.5pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;vertical-align:baseline;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11.5pt;color:rgb(36,39,41)">2.<span style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times New Roman""> </span></span><span style="font-size:11.5pt;color:rgb(36,39,41)">Are there any steps I am missing causing the passphrase prompt?</span></p><p class="MsoNormal" style="margin:0in 0in 0.0001pt 22.5pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;vertical-align:baseline;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11.5pt;color:rgb(36,39,41)">3. Any other direction , I should investigate.</span></p>
<p class="MsoNormal" style="margin-left:22.5pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;vertical-align:baseline;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;box-sizing:inherit;margin-top:0in;margin-right:0in;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11.5pt;color:rgb(36,39,41)"> </span></p>
<p style="margin:0in 0in 0.0001pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;vertical-align:baseline;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11.5pt;font-family:Arial,sans-serif;color:rgb(36,39,41)">I am kind of stuck here. Any help is very much appreciated.</span></p>
<h1 style="margin:0in 0in 0.0001pt;vertical-align:baseline;font-size:24pt;font-family:Calibri,sans-serif"><span style="font-size:11pt;font-weight:normal"> Thanks</span></h1><div><span style="font-size:11pt;font-weight:normal">Surender</span></div>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p></div>