pages tagged GnuPG http://meng6net.localhost/tag/GnuPG/ <p><small>Copyright © 2005-2020 by <code>Meng Lu &lt;lumeng3@gmail.com&gt;</code></small></p> Meng Lu's home page ikiwiki Tue, 12 Jan 2021 21:03:09 +0000 Examples of using `gpg-agent` http://meng6net.localhost/computing/example/examples_of_using_gpg-agent/ http://meng6net.localhost/computing/example/examples_of_using_gpg-agent/ GnuPG computing example Tue, 12 Jan 2021 21:03:09 +0000 2021-01-12T21:03:09Z <h2>Checking the status of <code>gpg-agent</code></h2> <pre><code>$ gpg-agent gpg-agent[7405]: no gpg-agent running in this session </code></pre> <h2>Starting <code>gpg-agent</code></h2> <p>Find number of files where string <code>ToDo</code> occurs</p> <pre><code>$ gpg-agent --daemon $ gpg-agent gpg-agent[9580]: gpg-agent running and available </code></pre> <h2>Re-starting <code>gpg-agent</code></h2> <p>The <code>gpg-connect-agent</code> is a utility to communicate with a running <code>gpg-agent</code> instance. It can be used to restart <code>gpg-agent</code>:</p> <pre><code>$ gpg-connect-agent reloadagent /bye OK $ gpg-agent gpg-agent[59922]: gpg-agent running and available $ gpg-connect-agent reloadagent /bye OK $ gpg-agent gpg-agent[60312]: gpg-agent running and available </code></pre> <p>Alternatively,</p> <pre><code>$ gpgconf --kill gpg-agent $ gpg-agent gpg-agent[12247]: no gpg-agent running in this session </code></pre>