Re: Git uses wrong subkey for signing commits with GPG key
- From
Todd Zullinger <tmz@pobox.com>
- Date
- Jan 13, 2018, 00:22 UTC
- Message-ID
- <20180113002221.GQ29313@zaya.teonanacatl.net>
- In-Reply-To
- <CAHLNBdVp0VTqtxHQ_cQ2XPMMDhqnQG5boj0M2JrT-iECaFUFZA@mail.gmail.com>
Hi Andrzej,
Andrzej Ośmiałowski wrote:
Show 14 quoted lines
> I have an issue with git and signing commits with GPG subkey. > > My setup: > - master key used for certification only > - subkey for my main workstation > - subkey for my mobile workstation (a notebook). > > Both subkeys are used for signing only. > > I've configured git to use my specific subkey however it does not > work: git config --global user.signingkey = KEYID. Every commit is > being signed using the newest subkey. I've verified the same behavior > on three systems (although with the same setup). I've tried to use > --gpg-sign=KEYID flag, but it does not work either.
I could be wrong, but I think you need to append '!' to KEYID to force gpg to use that specific signing subkey.
--
Todd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A vacuum is a hell of a lot better than some of the stuff that nature
replaces it with.
-- Tennessee Williams