{"thread":{"id":"16336","subject":"\"secret key not available\". \"unable to sign the tag\".","startedAt":"2008-11-14T23:28:44Z","lastAt":"2008-11-18T16:57:33Z","messageCount":7,"participants":["Gary Yang","Jeff King","Linus Torvalds"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"95845","messageId":"823128.71540.qm@web37902.mail.mud.yahoo.com","threadId":"16336","inReplyTo":null,"subject":"\"secret key not available\". \"unable to sign the tag\".","fromName":"Gary Yang","fromEmail":"garyyang6@yahoo.com","sentAt":"2008-11-14T23:28:44Z","receivedAt":"2008-11-14T23:28:44Z","isPatch":false,"sender":{"key":"garyyang6@yahoo.com","avatar":null},"body":"Hi,\n\nI got errors and warnings when I used \"git tag -s my-tag\". It says, \"secret key not available\". \"unable to sign the tag\". \n\ngpg: please see http://www.gnupg.org/faq.html for more information\ngpg: skipped `Gary Yang <gyang@linux123.(none)>': secret key not available\ngpg: signing failed: secret key not available\nerror: gpg failed to sign the tag\nfatal: unable to sign the tag\n\nI ran \"gpg --gen-key\" and generated keypair. But, still got the same error. Please help.\n\n\nThank,\n\nGary\n\n\n      \n"},{"id":"95855","messageId":"20081115035743.GA19633@coredump.intra.peff.net","threadId":"16336","inReplyTo":"823128.71540.qm@web37902.mail.mud.yahoo.com","subject":"Re: \"secret key not available\". \"unable to sign the tag\".","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2008-11-15T03:57:43Z","receivedAt":"2008-11-15T03:57:43Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Fri, Nov 14, 2008 at 03:28:44PM -0800, Gary Yang wrote:\n\n> I got errors and warnings when I used \"git tag -s my-tag\". It says,\n> \"secret key not available\". \"unable to sign the tag\". \n\nProbably because it can't find your secret key, like it says.\n\n> gpg: please see http://www.gnupg.org/faq.html for more information\n> gpg: skipped `Gary Yang <gyang@linux123.(none)>': secret key not available\n> gpg: signing failed: secret key not available\n> error: gpg failed to sign the tag\n> fatal: unable to sign the tag\n> \n> I ran \"gpg --gen-key\" and generated keypair. But, still got the same\n> error. Please help.\n\nDid the key you generated have the email address\n\"gyang@linux123.(none)\"? If not, then that is your problem.\n\nYou need to tell git who you are, since it is unable to deduce it from\ndoing host lookups. Try:\n\n  git config --global user.email garyyang6@yahoo.com\n\nor whatever email address you used when you created the key, and then\ngpg should find it appropriately.\n\n-Peff\n"},{"id":"95996","messageId":"alpine.LFD.2.00.0811161609340.3468@nehalem.linux-foundation.org","threadId":"16336","inReplyTo":"20081115035743.GA19633@coredump.intra.peff.net","subject":"Re: \"secret key not available\". \"unable to sign the tag\".","fromName":"Linus Torvalds","fromEmail":"torvalds@linux-foundation.org","sentAt":"2008-11-17T00:16:37Z","receivedAt":"2008-11-17T00:16:37Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\n\nOn Fri, 14 Nov 2008, Jeff King wrote:\n> \n> You need to tell git who you are, since it is unable to deduce it from\n> doing host lookups. Try:\n> \n>   git config --global user.email garyyang6@yahoo.com\n> \n> or whatever email address you used when you created the key, and then\n> gpg should find it appropriately.\n\nSide note: sometimes you might want to use a different key than the one \nyou use for authorship. Then you can use\n\n\t[user]\n\t\tSigningKey = key\n\n(or \"git config user.signingkey xyz\" if you don't want to edit the \nconfig file manually). \n\nThis can be especially useful if you use different keys for different \nprojects, even if you want to be known under the same name in both. Or \nbecause you want to have the local hostname in your commit logs, but your \ngpg key is using some externally visible \"official\" email address.\n\n\t\t\tLinus\n"},{"id":"96069","messageId":"424422.27374.qm@web37902.mail.mud.yahoo.com","threadId":"16336","inReplyTo":"20081115035743.GA19633@coredump.intra.peff.net","subject":"Re: \"secret key not available\". \"unable to sign the tag\".","fromName":"Gary Yang","fromEmail":"garyyang6@yahoo.com","sentAt":"2008-11-18T01:59:10Z","receivedAt":"2008-11-18T01:59:10Z","isPatch":false,"sender":{"key":"garyyang6@yahoo.com","avatar":null},"body":"Jeff King,\n\nI followed your instruction. But, I still got error when I tag the code. Can you please tell me why?\n\n>   git config --global user.email garyyang6@yahoo.com\n\ngit tag -s my-second-tag\n\ngpg: WARNING: using insecure memory!\ngpg: please see http://www.gnupg.org/faq.html for more information\ngpg: skipped `Gary Yang <garyyang6@yahoo.com>': secret key not available\ngpg: signing failed: secret key not available\nerror: gpg failed to sign the tag\nfatal: unable to sign the tag\n\n\n\nThanks,\n\n\nGary\n\n--- On Fri, 11/14/08, Jeff King <peff@peff.net> wrote:\n\n> From: Jeff King <peff@peff.net>\n> Subject: Re: \"secret key not available\". \"unable to sign the tag\".\n> To: \"Gary Yang\" <garyyang6@yahoo.com>\n> Cc: git@vger.kernel.org\n> Date: Friday, November 14, 2008, 7:57 PM\n> On Fri, Nov 14, 2008 at 03:28:44PM -0800, Gary Yang wrote:\n> \n> > I got errors and warnings when I used \"git tag -s\n> my-tag\". It says,\n> > \"secret key not available\". \"unable to\n> sign the tag\". \n> \n> Probably because it can't find your secret key, like it\n> says.\n> \n> > gpg: please see http://www.gnupg.org/faq.html for more\n> information\n> > gpg: skipped `Gary Yang\n> <gyang@linux123.(none)>': secret key not available\n> > gpg: signing failed: secret key not available\n> > error: gpg failed to sign the tag\n> > fatal: unable to sign the tag\n> > \n> > I ran \"gpg --gen-key\" and generated keypair.\n> But, still got the same\n> > error. Please help.\n> \n> Did the key you generated have the email address\n> \"gyang@linux123.(none)\"? If not, then that is\n> your problem.\n> \n> You need to tell git who you are, since it is unable to\n> deduce it from\n> doing host lookups. Try:\n> \n>   git config --global user.email garyyang6@yahoo.com\n> \n> or whatever email address you used when you created the\n> key, and then\n> gpg should find it appropriately.\n> \n> -Peff\n> --\n> To unsubscribe from this list: send the line\n> \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at \n> http://vger.kernel.org/majordomo-info.html\n\n\n      \n"},{"id":"96071","messageId":"alpine.LFD.2.00.0811172019080.18283@nehalem.linux-foundation.org","threadId":"16336","inReplyTo":"424422.27374.qm@web37902.mail.mud.yahoo.com","subject":"Re: \"secret key not available\". \"unable to sign the tag\".","fromName":"Linus Torvalds","fromEmail":"torvalds@linux-foundation.org","sentAt":"2008-11-18T04:21:22Z","receivedAt":"2008-11-18T04:21:22Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\n\nOn Mon, 17 Nov 2008, Gary Yang wrote:\n> \n> gpg: WARNING: using insecure memory!\n> gpg: please see http://www.gnupg.org/faq.html for more information\n> gpg: skipped `Gary Yang <garyyang6@yahoo.com>': secret key not available\n> gpg: signing failed: secret key not available\n\nWhat does\n\n\tgpg --list-secret-keys\n\nsay? Have you actually set up a key for that email address?\n\n\t\tLinus\n"},{"id":"96085","messageId":"876653.99147.qm@web37906.mail.mud.yahoo.com","threadId":"16336","inReplyTo":"alpine.LFD.2.00.0811161609340.3468@nehalem.linux-foundation.org","subject":"Re: \"secret key not available\". \"unable to sign the tag\".","fromName":"Gary Yang","fromEmail":"garyyang6@yahoo.com","sentAt":"2008-11-18T16:55:53Z","receivedAt":"2008-11-18T16:55:53Z","isPatch":false,"sender":{"key":"garyyang6@yahoo.com","avatar":null},"body":"Hi Jeff,\n\nI do not understand your email. I used the command,\ngit config --global user.email garyyang6@yahoo.com\n\nBut, I still got the same error. Do you have any idea?\n\n\nThanks,\n\n\nPerry\n\n\n\n\n--- On Sun, 11/16/08, Linus Torvalds <torvalds@linux-foundation.org> wrote:\n\n> From: Linus Torvalds <torvalds@linux-foundation.org>\n> Subject: Re: \"secret key not available\". \"unable to sign the tag\".\n> To: \"Jeff King\" <peff@peff.net>\n> Cc: \"Gary Yang\" <garyyang6@yahoo.com>, git@vger.kernel.org\n> Date: Sunday, November 16, 2008, 4:16 PM\n> On Fri, 14 Nov 2008, Jeff King wrote:\n> > \n> > You need to tell git who you are, since it is unable\n> to deduce it from\n> > doing host lookups. Try:\n> > \n> >   git config --global user.email garyyang6@yahoo.com\n> > \n> > or whatever email address you used when you created\n> the key, and then\n> > gpg should find it appropriately.\n> \n> Side note: sometimes you might want to use a different key\n> than the one \n> you use for authorship. Then you can use\n> \n> \t[user]\n> \t\tSigningKey = key\n> \n> (or \"git config user.signingkey xyz\" if you\n> don't want to edit the \n> config file manually). \n> \n> This can be especially useful if you use different keys for\n> different \n> projects, even if you want to be known under the same name\n> in both. Or \n> because you want to have the local hostname in your commit\n> logs, but your \n> gpg key is using some externally visible\n> \"official\" email address.\n> \n> \t\t\tLinus\n\n\n      \n"},{"id":"96086","messageId":"525043.96796.qm@web37903.mail.mud.yahoo.com","threadId":"16336","inReplyTo":"alpine.LFD.2.00.0811161609340.3468@nehalem.linux-foundation.org","subject":"Re: \"secret key not available\". \"unable to sign the tag\".","fromName":"Gary Yang","fromEmail":"garyyang6@yahoo.com","sentAt":"2008-11-18T16:57:33Z","receivedAt":"2008-11-18T16:57:33Z","isPatch":false,"sender":{"key":"garyyang6@yahoo.com","avatar":null},"body":"Hi Linus,\n\nI 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?\n\nThank you,\n\n\nGary\n\n\n--- On Sun, 11/16/08, Linus Torvalds <torvalds@linux-foundation.org> wrote:\n\n> From: Linus Torvalds <torvalds@linux-foundation.org>\n> Subject: Re: \"secret key not available\". \"unable to sign the tag\".\n> To: \"Jeff King\" <peff@peff.net>\n> Cc: \"Gary Yang\" <garyyang6@yahoo.com>, git@vger.kernel.org\n> Date: Sunday, November 16, 2008, 4:16 PM\n> On Fri, 14 Nov 2008, Jeff King wrote:\n> > \n> > You need to tell git who you are, since it is unable\n> to deduce it from\n> > doing host lookups. Try:\n> > \n> >   git config --global user.email garyyang6@yahoo.com\n> > \n> > or whatever email address you used when you created\n> the key, and then\n> > gpg should find it appropriately.\n> \n> Side note: sometimes you might want to use a different key\n> than the one \n> you use for authorship. Then you can use\n> \n> \t[user]\n> \t\tSigningKey = key\n> \n> (or \"git config user.signingkey xyz\" if you\n> don't want to edit the \n> config file manually). \n> \n> This can be especially useful if you use different keys for\n> different \n> projects, even if you want to be known under the same name\n> in both. Or \n> because you want to have the local hostname in your commit\n> logs, but your \n> gpg key is using some externally visible\n> \"official\" email address.\n> \n> \t\t\tLinus\n\n\n      \n"}]}