title: GPG sign not using keys from gpg-connect-agent
body: <p>I'm trying to make PGP keys sharing from Windows 10 to WSL 2 with Ubuntu 20.04.</p>
  <p>I'm using this tool: <a href="https://github.com/BlackReloaded/wsl2-ssh-pageant" rel="nofollow noreferrer">https://github.com/BlackReloaded/wsl2-ssh-pageant</a></p>
  <p>My current situation is that with <code>gpg-connect-agent 'keyinfo --list' /bye</code> all my Windows GPG keys are listed, but with <code>gpg --list-keys</code> an empty list is returned.</p>
  <pre><code>$ gpg-connect-agent 'keyinfo --list' /bye
  S KEYINFO 9BD09C... D - - - P - - -
  S KEYINFO BBF58D... D - - - P - - -
  S KEYINFO D62ED0... D - - - P - - -
  OK
  </code></pre>
  <p>Signing attemps fails with 'No secret key', but I think this is spected, as gpg --list-keys are empty: <code>echo &quot;test&quot; | gpg --sign -u mail@none.com</code></p>
  <p>Any clues why is this happenning?</p>
  <p>What is the relation with gpg and gpg-connect-agent?</p>
  <p><strong>Setup:</strong></p>
  <ol>
  <li>Start a fresh WSL 2 session with `wsl --shutdown'</li>
  <li>Remove 'S.gpg-agent' file</li>
  <li>Create pipe with <code>setsid socat UNIX-LISTEN:$GPG_AGENT_SOCK,fork EXEC:&quot;${WSL_TOOLS}/wsl2-ssh-pageant.exe --gpg S.gpg-agent&quot;,nofork &amp;</code></li>
  </ol>