<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
Ok. Did some googling came up with the following. Could someone confirm that I’m doing this correctly?</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
Objective: To save passphrase in cache to an unattended machine so that it doesn’t time out the credentials. Specifically, using <a href="https://github.com/docker/docker-credential-helpers">https://github.com/docker/docker-credential-helpers</a>, with setup <a href="https://github.com/docker/docker-credential-helpers/issues/102#issuecomment-388634452">https://github.com/docker/docker-credential-helpers/issues/102#issuecomment-388634452</a>. </div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
Steps:</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
use gpg-preset-passphrase</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
Current Setup</div>
<ul style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<li>~/.gnupg/gpg-agent.conf
<ul>
<li>pinentry-program /usr/bin/pinentry-curses</li><li>max-cache-ttl 60480000</li><li>default-cache-ttl 60480000</li><li>allow-preset-passphrase</li></ul>
</li></ul>
<ul style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<li>gpg --version
<ul>
<li>gpg (GnuPG) 2.0.22</li><li>libgcrypt 1.5.3</li><li>Copyright (C) 2013 Free Software Foundation, Inc.</li><li>License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html></li><li>This is free software: you are free to change and redistribute it.</li><li>There is NO WARRANTY, to the extent permitted by law.</li><li><br>
</li><li>Home: ~/.gnupg</li><li>Supported algorithms:</li><li>Pubkey: RSA, ?, ?, ELG, DSA</li><li>Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,</li><li> CAMELLIA128, CAMELLIA192, CAMELLIA256</li><li>Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224</li><li>Compression: Uncompressed, ZIP, ZLIB, BZIP2</li></ul>
</li><li>gpg2 --fingerprint --fingerprint name@domain.com
<ul>
<li>pub 2048R/12312312 2019-03-23</li><li> Key fingerprint = 4567 4567 4567 4567 4567 4567 4567 4567 4567 4567</li><li>uid Name <name@domain.com></li><li>sub 2048R/11121314 2019-03-23</li><li> Key fingerprint = 8910 8910 8910 8910 8910 8910 8910 8910 8910 8910</li></ul>
</li></ul>
<div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
Updated Setup using <span style="background-color: rgb(255, 255, 255);">gpg-preset-passphrase only</span></div>
<ul>
<li style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<span style="background-color: rgb(255, 255, 255);">~/.gnupg/gpg-agent.conf </span>
<ul>
<li><font face="Calibri,sans-serif">We should be able to remove the first 3 line items since we are only using </font><span style="font-family: Calibri, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">gpg-preset-passphrase</span></li><li><font face="Calibri,sans-serif">Final file contents</font>
<ul>
<li><font face="Calibri,sans-serif">allow-preset-passphrase</font></li></ul>
</li></ul>
</li><li><font face="Calibri,sans-serif">Reload gpa-agent.conf file</font>
<ul>
<li><font face="Calibri,sans-serif">gpg-connect-agent reloadagent /bye</font></li></ul>
</li><li><font face="Calibri,sans-serif">Setup </font><span style="font-family: Calibri, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">gpg-preset-passphrase</span>
<ul>
<li><span style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; text-decoration: none;">gpg-preset-passphrase --preset 8910891089108910891089108910891089108910</span></li></ul>
</li><li><font face="Calibri,sans-serif">Now when you login to that key and enter the passphrase It should cache it until you issue the following command to remove it.</font>
<ul>
<li><font face="Calibri,sans-serif">gpg-preset-passphrase —forget 8910891089108910891089108910891089108910</font></li></ul>
</li></ul>
<div><font face="Calibri,sans-serif">Question:</font></div>
<ol>
<li><font face="Calibri,sans-serif">Is the updated setup correct in my assumption for the setup? </font></li></ol>
<div><font face="Calibri,sans-serif">Thank you in advance for taking the time to help, it is greatly appreciated.</font></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<span class="Apple-style-span" style="font-family: Calibri;"><br>
</span></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<span class="Apple-style-span" style="font-family: Calibri; ">Gaurav</span></div>
</div>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<span id="OLK_SRC_BODY_SECTION" style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Gaurav walia <<a href="mailto:gaurav.walia@jpl.nasa.gov">gaurav.walia@jpl.nasa.gov</a>><br>
<span style="font-weight:bold">Date: </span>Friday, April 12, 2019 at 3:09 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:gnupg-users@gnupg.org">gnupg-users@gnupg.org</a>" <<a href="mailto:gnupg-users@gnupg.org">gnupg-users@gnupg.org</a>><br>
<span style="font-weight:bold">Subject: </span>gpg-preset-passphrase installation and usage<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hello,</div>
<div><br>
</div>
<div>Very new to gpg. I’m attempting to use gpg-preset-passphrase. But uncertain how to go about enabling it for usage. Could someone direct me or provide me some instructions in how to go about enabling gpg-preset-passphrase?</div>
<div><br>
</div>
<div>I have the following version installed:</div>
<div>
<div>gpg --version</div>
<div>gpg (GnuPG) 2.0.22</div>
<div>libgcrypt 1.5.3</div>
<div>Copyright (C) 2013 Free Software Foundation, Inc.</div>
<div>License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>></div>
<div>This is free software: you are free to change and redistribute it.</div>
<div>There is NO WARRANTY, to the extent permitted by law.</div>
<div><br>
</div>
<div>Home: ~/.gnupg</div>
<div>Supported algorithms:</div>
<div>Pubkey: RSA, ?, ?, ELG, DSA</div>
<div>Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,</div>
<div> CAMELLIA128, CAMELLIA192, CAMELLIA256</div>
<div>Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224</div>
<div>Compression: Uncompressed, ZIP, ZLIB, BZIP2</div>
</div>
<div></div>
<div><br>
</div>
<div>
<div><span class="Apple-style-span" style="font-family: Calibri;"><br>
</span></div>
<div><span class="Apple-style-span" style="font-family: Calibri; ">Gaurav</span></div>
</div>
</div>
</div>
</span>
</body>
</html>