# Re: "secret key not available". "unable to sign the tag".

6 messages from 2008-11-18 to 2010-02-04. Participants: Gary Yang, Linus Torvalds, SASh-4.
Thread: https://gitlist.dev/t/16382

## Gary Yang, 2008-11-18 20:22

Subject: Re: "secret key not available". "unable to sign the tag".
Message-ID: <832452.93473.qm@web37901.mail.mud.yahoo.com>
URL: https://gitlist.dev/e/832452.93473.qm%40web37901.mail.mud.yahoo.com

```
All,

I really need to tag my source code. But, somehow I am not able. Can someone help?

Thanks in advance!


Gary



--- On Tue, 11/18/08, Gary Yang <garyyang6@yahoo.com> wrote:

> From: Gary Yang <garyyang6@yahoo.com>
> Subject: Re: "secret key not available". "unable to sign the tag".
> To: "Jeff King" <peff@peff.net>, "Linus Torvalds" <torvalds@linux-foundation.org>
> Cc: git@vger.kernel.org
> Date: Tuesday, November 18, 2008, 8:57 AM
> Hi Linus,
> 
> I do not understand your email. I used the command, git
> config --global user.email garyyang6@yahoo.com. But, I still
> got the same error. Do you have any idea?
> 
> Thank you,
> 
> 
> Gary
> 
> 
> --- On Sun, 11/16/08, Linus Torvalds
> <torvalds@linux-foundation.org> wrote:
> 
> > From: Linus Torvalds
> <torvalds@linux-foundation.org>
> > Subject: Re: "secret key not available".
> "unable to sign the tag".
> > To: "Jeff King" <peff@peff.net>
> > Cc: "Gary Yang" <garyyang6@yahoo.com>,
> git@vger.kernel.org
> > Date: Sunday, November 16, 2008, 4:16 PM
> > On Fri, 14 Nov 2008, Jeff King wrote:
> > > 
> > > You need to tell git who you are, since it is
> unable
> > to deduce it from
> > > doing host lookups. Try:
> > > 
> > >   git config --global user.email
> garyyang6@yahoo.com
> > > 
> > > or whatever email address you used when you
> created
> > the key, and then
> > > gpg should find it appropriately.
> > 
> > Side note: sometimes you might want to use a different
> key
> > than the one 
> > you use for authorship. Then you can use
> > 
> > 	[user]
> > 		SigningKey = key
> > 
> > (or "git config user.signingkey xyz" if you
> > don't want to edit the 
> > config file manually). 
> > 
> > This can be especially useful if you use different
> keys for
> > different 
> > projects, even if you want to be known under the same
> name
> > in both. Or 
> > because you want to have the local hostname in your
> commit
> > logs, but your 
> > gpg key is using some externally visible
> > "official" email address.
> > 
> > 			Linus


      

```

## Gary Yang, 2008-11-18 20:26

Subject: Re: "secret key not available". "unable to sign the tag".
Message-ID: <810496.66936.qm@web37903.mail.mud.yahoo.com>
URL: https://gitlist.dev/e/810496.66936.qm%40web37903.mail.mud.yahoo.com
In-Reply-To: <832452.93473.qm@web37901.mail.mud.yahoo.com>

```
Here are the errors I got:

git tag -s my-second-tag

gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information
gpg: skipped `Gary Yang <garyyang6@yahoo.com>': secret key not available
gpg: signing failed: secret key not available
error: gpg failed to sign the tag
fatal: unable to sign the tag



Thanks,


Gary



--- On Tue, 11/18/08, Gary Yang <garyyang6@yahoo.com> wrote:

> From: Gary Yang <garyyang6@yahoo.com>
> Subject: Re: "secret key not available". "unable to sign the tag".
> To: "Jeff King" <peff@peff.net>, "Linus Torvalds" <torvalds@linux-foundation.org>
> Cc: git@vger.kernel.org
> Date: Tuesday, November 18, 2008, 12:22 PM
> All,
> 
> I really need to tag my source code. But, somehow I am not
> able. Can someone help?
> 
> Thanks in advance!
> 
> 
> Gary
> 
> 
> 
> --- On Tue, 11/18/08, Gary Yang <garyyang6@yahoo.com>
> wrote:
> 
> > From: Gary Yang <garyyang6@yahoo.com>
> > Subject: Re: "secret key not available".
> "unable to sign the tag".
> > To: "Jeff King" <peff@peff.net>,
> "Linus Torvalds"
> <torvalds@linux-foundation.org>
> > Cc: git@vger.kernel.org
> > Date: Tuesday, November 18, 2008, 8:57 AM
> > Hi Linus,
> > 
> > I do not understand your email. I used the command,
> git
> > config --global user.email garyyang6@yahoo.com. But, I
> still
> > got the same error. Do you have any idea?
> > 
> > Thank you,
> > 
> > 
> > Gary
> > 
> > 
> > --- On Sun, 11/16/08, Linus Torvalds
> > <torvalds@linux-foundation.org> wrote:
> > 
> > > From: Linus Torvalds
> > <torvalds@linux-foundation.org>
> > > Subject: Re: "secret key not
> available".
> > "unable to sign the tag".
> > > To: "Jeff King" <peff@peff.net>
> > > Cc: "Gary Yang"
> <garyyang6@yahoo.com>,
> > git@vger.kernel.org
> > > Date: Sunday, November 16, 2008, 4:16 PM
> > > On Fri, 14 Nov 2008, Jeff King wrote:
> > > > 
> > > > You need to tell git who you are, since it
> is
> > unable
> > > to deduce it from
> > > > doing host lookups. Try:
> > > > 
> > > >   git config --global user.email
> > garyyang6@yahoo.com
> > > > 
> > > > or whatever email address you used when you
> > created
> > > the key, and then
> > > > gpg should find it appropriately.
> > > 
> > > Side note: sometimes you might want to use a
> different
> > key
> > > than the one 
> > > you use for authorship. Then you can use
> > > 
> > > 	[user]
> > > 		SigningKey = key
> > > 
> > > (or "git config user.signingkey xyz" if
> you
> > > don't want to edit the 
> > > config file manually). 
> > > 
> > > This can be especially useful if you use
> different
> > keys for
> > > different 
> > > projects, even if you want to be known under the
> same
> > name
> > > in both. Or 
> > > because you want to have the local hostname in
> your
> > commit
> > > logs, but your 
> > > gpg key is using some externally visible
> > > "official" email address.
> > > 
> > > 			Linus
> 
> 
>       
> --
> To unsubscribe from this list: send the line
> "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at 
> http://vger.kernel.org/majordomo-info.html


      

```

## Gary Yang, 2008-11-18 21:20

Subject: Re: "secret key not available". "unable to sign the tag".
Message-ID: <31942.12221.qm@web37902.mail.mud.yahoo.com>
URL: https://gitlist.dev/e/31942.12221.qm%40web37902.mail.mud.yahoo.com
In-Reply-To: <810496.66936.qm@web37903.mail.mud.yahoo.com>

```


The gpg works. But, git tag dose not work. Any idea?


gpg --detach-sign foo.bar
gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information

You need a passphrase to unlock the secret key for
user: "Gary Yang (For git.) <garyyang6@yahoo.com>"
1024-bit DSA key, ID A3F6A45E, created 2008-11-14
Enter passphrase: 
[garyyang6@svdclc313 ~/git-repository]%


It successfully signed.


Gary


--- On Tue, 11/18/08, Gary Yang <garyyang6@yahoo.com> wrote:

> From: Gary Yang <garyyang6@yahoo.com>
> Subject: Re: "secret key not available". "unable to sign the tag".
> To: "Jeff King" <peff@peff.net>, "Linus Torvalds" <torvalds@linux-foundation.org>
> Cc: git@vger.kernel.org
> Date: Tuesday, November 18, 2008, 12:26 PM
> Here are the errors I got:
> 
> git tag -s my-second-tag
> 
> gpg: WARNING: using insecure memory!
> gpg: please see http://www.gnupg.org/faq.html for more
> information
> gpg: skipped `Gary Yang <garyyang6@yahoo.com>':
> secret key not available
> gpg: signing failed: secret key not available
> error: gpg failed to sign the tag
> fatal: unable to sign the tag
> 
> 
> 
> Thanks,
> 
> 
> Gary
> 
> 
> 
> --- On Tue, 11/18/08, Gary Yang <garyyang6@yahoo.com>
> wrote:
> 
> > From: Gary Yang <garyyang6@yahoo.com>
> > Subject: Re: "secret key not available".
> "unable to sign the tag".
> > To: "Jeff King" <peff@peff.net>,
> "Linus Torvalds"
> <torvalds@linux-foundation.org>
> > Cc: git@vger.kernel.org
> > Date: Tuesday, November 18, 2008, 12:22 PM
> > All,
> > 
> > I really need to tag my source code. But, somehow I am
> not
> > able. Can someone help?
> > 
> > Thanks in advance!
> > 
> > 
> > Gary
> > 
> > 
> > 
> > --- On Tue, 11/18/08, Gary Yang
> <garyyang6@yahoo.com>
> > wrote:
> > 
> > > From: Gary Yang <garyyang6@yahoo.com>
> > > Subject: Re: "secret key not
> available".
> > "unable to sign the tag".
> > > To: "Jeff King" <peff@peff.net>,
> > "Linus Torvalds"
> > <torvalds@linux-foundation.org>
> > > Cc: git@vger.kernel.org
> > > Date: Tuesday, November 18, 2008, 8:57 AM
> > > Hi Linus,
> > > 
> > > I do not understand your email. I used the
> command,
> > git
> > > config --global user.email garyyang6@yahoo.com.
> But, I
> > still
> > > got the same error. Do you have any idea?
> > > 
> > > Thank you,
> > > 
> > > 
> > > Gary
> > > 
> > > 
> > > --- On Sun, 11/16/08, Linus Torvalds
> > > <torvalds@linux-foundation.org> wrote:
> > > 
> > > > From: Linus Torvalds
> > > <torvalds@linux-foundation.org>
> > > > Subject: Re: "secret key not
> > available".
> > > "unable to sign the tag".
> > > > To: "Jeff King"
> <peff@peff.net>
> > > > Cc: "Gary Yang"
> > <garyyang6@yahoo.com>,
> > > git@vger.kernel.org
> > > > Date: Sunday, November 16, 2008, 4:16 PM
> > > > On Fri, 14 Nov 2008, Jeff King wrote:
> > > > > 
> > > > > You need to tell git who you are, since
> it
> > is
> > > unable
> > > > to deduce it from
> > > > > doing host lookups. Try:
> > > > > 
> > > > >   git config --global user.email
> > > garyyang6@yahoo.com
> > > > > 
> > > > > or whatever email address you used when
> you
> > > created
> > > > the key, and then
> > > > > gpg should find it appropriately.
> > > > 
> > > > Side note: sometimes you might want to use a
> > different
> > > key
> > > > than the one 
> > > > you use for authorship. Then you can use
> > > > 
> > > > 	[user]
> > > > 		SigningKey = key
> > > > 
> > > > (or "git config user.signingkey
> xyz" if
> > you
> > > > don't want to edit the 
> > > > config file manually). 
> > > > 
> > > > This can be especially useful if you use
> > different
> > > keys for
> > > > different 
> > > > projects, even if you want to be known under
> the
> > same
> > > name
> > > > in both. Or 
> > > > because you want to have the local hostname
> in
> > your
> > > commit
> > > > logs, but your 
> > > > gpg key is using some externally visible
> > > > "official" email address.
> > > > 
> > > > 			Linus
> > 
> > 
> >       
> > --
> > To unsubscribe from this list: send the line
> > "unsubscribe git" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at 
> > http://vger.kernel.org/majordomo-info.html
> 
> 
>       
> --
> To unsubscribe from this list: send the line
> "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at 
> http://vger.kernel.org/majordomo-info.html


      

```

## Linus Torvalds, 2008-11-19 15:42

Subject: Re: "secret key not available". "unable to sign the tag".
Message-ID: <alpine.LFD.2.00.0811190740200.18283@nehalem.linux-foundation.org>
URL: https://gitlist.dev/e/alpine.LFD.2.00.0811190740200.18283%40nehalem.linux-foundation.org
In-Reply-To: <31942.12221.qm@web37902.mail.mud.yahoo.com>

```


On Tue, 18 Nov 2008, Gary Yang wrote:
> 
> The gpg works. But, git tag dose not work. Any idea?

Does

	git tag -u garyyang6@yahoo.com tag-name

work (ie when you use an explicitly given key to tag with)?

And if not, please do list the output of "gpg -K" if that doesn't work.

			Linus

```

## Gary Yang, 2008-11-19 16:54

Subject: Re: "secret key not available". "unable to sign the tag".
Message-ID: <86367.3986.qm@web37907.mail.mud.yahoo.com>
URL: https://gitlist.dev/e/86367.3986.qm%40web37907.mail.mud.yahoo.com
In-Reply-To: <alpine.LFD.2.00.0811190740200.18283@nehalem.linux-foundation.org>

```
The command, "git tag -u garyyang6@yahoo.com tag-name" works! Thank you! 
Below is the output of "gpg -k". I have no idea why I have three keys.


gpg -k
gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information
/home/garyyang6/.gnupg/pubring.gpg
----------------------------------
pub  1024D/A3F6A45E 2008-11-14 Gary Yang (For git.) <garyyang6@yahoo.com>
sub  1024g/58AE6B3C 2008-11-14

pub  1024D/EE763A89 2008-11-14 Gary Yang (PGP for git.) <garyyang6@yahoo.com>
sub  1024g/AECCA323 2008-11-14

pub  1024D/5015631E 2008-11-18 Gary Yang (For git) <garyyang6@yahoo.com>



--- On Wed, 11/19/08, Linus Torvalds <torvalds@linux-foundation.org> wrote:

> From: Linus Torvalds <torvalds@linux-foundation.org>
> Subject: Re: "secret key not available". "unable to sign the tag".
> To: "Gary Yang" <garyyang6@yahoo.com>
> Cc: "Jeff King" <peff@peff.net>, "Git Mailing List" <git@vger.kernel.org>
> Date: Wednesday, November 19, 2008, 7:42 AM
> On Tue, 18 Nov 2008, Gary Yang wrote:
> > 
> > The gpg works. But, git tag dose not work. Any idea?
> 
> Does
> 
> 	git tag -u garyyang6@yahoo.com tag-name
> 
> work (ie when you use an explicitly given key to tag with)?
> 
> And if not, please do list the output of "gpg -K"
> if that doesn't work.
> 
> 			Linus
> --
> To unsubscribe from this list: send the line
> "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at 
> http://vger.kernel.org/majordomo-info.html


      

```

## SASh-4, 2010-02-04 11:44

Subject: Re: "secret key not available". "unable to sign the tag".
Message-ID: <1265283884656-4512970.post@n2.nabble.com>
URL: https://gitlist.dev/e/1265283884656-4512970.post%40n2.nabble.com
In-Reply-To: <86367.3986.qm@web37907.mail.mud.yahoo.com>

```

I had the same problem. Turned out that the user.name must also match the one
in the gpg! Hope this helps!
-- 
View this message in context: http://n2.nabble.com/secret-key-not-available-unable-to-sign-the-tag-tp1500685p4512970.html
Sent from the git mailing list archive at Nabble.com.

```
