git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
GYGary Yang <garyyang6@yahoo.com>
Date
Nov 18, 2008, 01:59 UTC
Message-ID
<424422.27374.qm@web37902.mail.mud.yahoo.com>
In-Reply-To
<20081115035743.GA19633@coredump.intra.peff.net>
Jeff King,
I followed your instruction. But, I still got error when I tag the code. Can you please tell me why?
>   git config --global user.email garyyang6@yahoo.com
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 Fri, 11/14/08, Jeff King <peff@peff.net> wrote:
Show 48 quoted lines
> From: Jeff King <peff@peff.net>
> Subject: Re: "secret key not available". "unable to sign the tag".
> To: "Gary Yang" <garyyang6@yahoo.com>
> Cc: git@vger.kernel.org
> Date: Friday, November 14, 2008, 7:57 PM
> On Fri, Nov 14, 2008 at 03:28:44PM -0800, Gary Yang wrote:
> 
> > I got errors and warnings when I used "git tag -s
> my-tag". It says,
> > "secret key not available". "unable to
> sign the tag". 
> 
> Probably because it can't find your secret key, like it
> says.
> 
> > gpg: please see http://www.gnupg.org/faq.html for more
> information
> > gpg: skipped `Gary Yang
> <gyang@linux123.(none)>': secret key not available
> > gpg: signing failed: secret key not available
> > error: gpg failed to sign the tag
> > fatal: unable to sign the tag
> > 
> > I ran "gpg --gen-key" and generated keypair.
> But, still got the same
> > error. Please help.
> 
> Did the key you generated have the email address
> "gyang@linux123.(none)"? If not, then that is
> your problem.
> 
> 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.
> 
> -Peff
> --
> 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
Previous: Gary YangNext: Linus Torvalds
Message 6 of 7 in “"secret key not available". "unable to sign the tag".”
  1. Gary YangNov 14, 2008
  2. Jeff KingNov 15, 2008
  3. Linus TorvaldsNov 17, 2008
  4. Gary YangNov 18, 2008
  5. Gary YangNov 18, 2008
  6. Gary YangNov 18, 2008
  7. Linus TorvaldsNov 18, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.