{"thread":{"id":"16382","subject":"Re: \"secret key not available\". \"unable to sign the tag\".","startedAt":"2008-11-18T20:22:09Z","lastAt":"2010-02-04T11:44:44Z","messageCount":6,"participants":["Gary Yang","Linus Torvalds","SASh-4"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"96093","messageId":"832452.93473.qm@web37901.mail.mud.yahoo.com","threadId":"16382","inReplyTo":null,"subject":"Re: \"secret key not available\". \"unable to sign the tag\".","fromName":"Gary Yang","fromEmail":"garyyang6@yahoo.com","sentAt":"2008-11-18T20:22:09Z","receivedAt":"2008-11-18T20:22:09Z","isPatch":false,"sender":{"key":"garyyang6@yahoo.com","avatar":null},"body":"All,\n\nI really need to tag my source code. But, somehow I am not able. Can someone help?\n\nThanks in advance!\n\n\nGary\n\n\n\n--- On Tue, 11/18/08, Gary Yang <garyyang6@yahoo.com> wrote:\n\n> From: Gary Yang <garyyang6@yahoo.com>\n> Subject: Re: \"secret key not available\". \"unable to sign the tag\".\n> To: \"Jeff King\" <peff@peff.net>, \"Linus Torvalds\" <torvalds@linux-foundation.org>\n> Cc: git@vger.kernel.org\n> Date: Tuesday, November 18, 2008, 8:57 AM\n> Hi Linus,\n> \n> I do not understand your email. I used the command, git\n> config --global user.email garyyang6@yahoo.com. But, I still\n> got the same error. Do you have any idea?\n> \n> Thank you,\n> \n> \n> Gary\n> \n> \n> --- On Sun, 11/16/08, Linus Torvalds\n> <torvalds@linux-foundation.org> wrote:\n> \n> > From: Linus Torvalds\n> <torvalds@linux-foundation.org>\n> > Subject: Re: \"secret key not available\".\n> \"unable to sign the tag\".\n> > To: \"Jeff King\" <peff@peff.net>\n> > Cc: \"Gary Yang\" <garyyang6@yahoo.com>,\n> 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\n> unable\n> > to deduce it from\n> > > doing host lookups. Try:\n> > > \n> > >   git config --global user.email\n> garyyang6@yahoo.com\n> > > \n> > > or whatever email address you used when you\n> created\n> > the key, and then\n> > > gpg should find it appropriately.\n> > \n> > Side note: sometimes you might want to use a different\n> 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\n> keys for\n> > different \n> > projects, even if you want to be known under the same\n> name\n> > in both. Or \n> > because you want to have the local hostname in your\n> 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":"96094","messageId":"810496.66936.qm@web37903.mail.mud.yahoo.com","threadId":"16382","inReplyTo":"832452.93473.qm@web37901.mail.mud.yahoo.com","subject":"Re: \"secret key not available\". \"unable to sign the tag\".","fromName":"Gary Yang","fromEmail":"garyyang6@yahoo.com","sentAt":"2008-11-18T20:26:10Z","receivedAt":"2008-11-18T20:26:10Z","isPatch":false,"sender":{"key":"garyyang6@yahoo.com","avatar":null},"body":"Here are the errors I got:\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\n\n--- On Tue, 11/18/08, Gary Yang <garyyang6@yahoo.com> wrote:\n\n> From: Gary Yang <garyyang6@yahoo.com>\n> Subject: Re: \"secret key not available\". \"unable to sign the tag\".\n> To: \"Jeff King\" <peff@peff.net>, \"Linus Torvalds\" <torvalds@linux-foundation.org>\n> Cc: git@vger.kernel.org\n> Date: Tuesday, November 18, 2008, 12:22 PM\n> All,\n> \n> I really need to tag my source code. But, somehow I am not\n> able. Can someone help?\n> \n> Thanks in advance!\n> \n> \n> Gary\n> \n> \n> \n> --- On Tue, 11/18/08, Gary Yang <garyyang6@yahoo.com>\n> wrote:\n> \n> > From: Gary Yang <garyyang6@yahoo.com>\n> > Subject: Re: \"secret key not available\".\n> \"unable to sign the tag\".\n> > To: \"Jeff King\" <peff@peff.net>,\n> \"Linus Torvalds\"\n> <torvalds@linux-foundation.org>\n> > Cc: git@vger.kernel.org\n> > Date: Tuesday, November 18, 2008, 8:57 AM\n> > Hi Linus,\n> > \n> > I do not understand your email. I used the command,\n> git\n> > config --global user.email garyyang6@yahoo.com. But, I\n> still\n> > got the same error. Do you have any idea?\n> > \n> > Thank you,\n> > \n> > \n> > Gary\n> > \n> > \n> > --- On Sun, 11/16/08, Linus Torvalds\n> > <torvalds@linux-foundation.org> wrote:\n> > \n> > > From: Linus Torvalds\n> > <torvalds@linux-foundation.org>\n> > > Subject: Re: \"secret key not\n> available\".\n> > \"unable to sign the tag\".\n> > > To: \"Jeff King\" <peff@peff.net>\n> > > Cc: \"Gary Yang\"\n> <garyyang6@yahoo.com>,\n> > 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\n> is\n> > unable\n> > > to deduce it from\n> > > > doing host lookups. Try:\n> > > > \n> > > >   git config --global user.email\n> > garyyang6@yahoo.com\n> > > > \n> > > > or whatever email address you used when you\n> > created\n> > > the key, and then\n> > > > gpg should find it appropriately.\n> > > \n> > > Side note: sometimes you might want to use a\n> different\n> > 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\n> you\n> > > don't want to edit the \n> > > config file manually). \n> > > \n> > > This can be especially useful if you use\n> different\n> > keys for\n> > > different \n> > > projects, even if you want to be known under the\n> same\n> > name\n> > > in both. Or \n> > > because you want to have the local hostname in\n> your\n> > 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> --\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":"96099","messageId":"31942.12221.qm@web37902.mail.mud.yahoo.com","threadId":"16382","inReplyTo":"810496.66936.qm@web37903.mail.mud.yahoo.com","subject":"Re: \"secret key not available\". \"unable to sign the tag\".","fromName":"Gary Yang","fromEmail":"garyyang6@yahoo.com","sentAt":"2008-11-18T21:20:42Z","receivedAt":"2008-11-18T21:20:42Z","isPatch":false,"sender":{"key":"garyyang6@yahoo.com","avatar":null},"body":"\n\nThe gpg works. But, git tag dose not work. Any idea?\n\n\ngpg --detach-sign foo.bar\ngpg: WARNING: using insecure memory!\ngpg: please see http://www.gnupg.org/faq.html for more information\n\nYou need a passphrase to unlock the secret key for\nuser: \"Gary Yang (For git.) <garyyang6@yahoo.com>\"\n1024-bit DSA key, ID A3F6A45E, created 2008-11-14\nEnter passphrase: \n[garyyang6@svdclc313 ~/git-repository]%\n\n\nIt successfully signed.\n\n\nGary\n\n\n--- On Tue, 11/18/08, Gary Yang <garyyang6@yahoo.com> wrote:\n\n> From: Gary Yang <garyyang6@yahoo.com>\n> Subject: Re: \"secret key not available\". \"unable to sign the tag\".\n> To: \"Jeff King\" <peff@peff.net>, \"Linus Torvalds\" <torvalds@linux-foundation.org>\n> Cc: git@vger.kernel.org\n> Date: Tuesday, November 18, 2008, 12:26 PM\n> Here are the errors I got:\n> \n> git tag -s my-second-tag\n> \n> gpg: WARNING: using insecure memory!\n> gpg: please see http://www.gnupg.org/faq.html for more\n> information\n> gpg: skipped `Gary Yang <garyyang6@yahoo.com>':\n> 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> \n> \n> Thanks,\n> \n> \n> Gary\n> \n> \n> \n> --- On Tue, 11/18/08, Gary Yang <garyyang6@yahoo.com>\n> wrote:\n> \n> > From: Gary Yang <garyyang6@yahoo.com>\n> > Subject: Re: \"secret key not available\".\n> \"unable to sign the tag\".\n> > To: \"Jeff King\" <peff@peff.net>,\n> \"Linus Torvalds\"\n> <torvalds@linux-foundation.org>\n> > Cc: git@vger.kernel.org\n> > Date: Tuesday, November 18, 2008, 12:22 PM\n> > All,\n> > \n> > I really need to tag my source code. But, somehow I am\n> not\n> > able. Can someone help?\n> > \n> > Thanks in advance!\n> > \n> > \n> > Gary\n> > \n> > \n> > \n> > --- On Tue, 11/18/08, Gary Yang\n> <garyyang6@yahoo.com>\n> > wrote:\n> > \n> > > From: Gary Yang <garyyang6@yahoo.com>\n> > > Subject: Re: \"secret key not\n> available\".\n> > \"unable to sign the tag\".\n> > > To: \"Jeff King\" <peff@peff.net>,\n> > \"Linus Torvalds\"\n> > <torvalds@linux-foundation.org>\n> > > Cc: git@vger.kernel.org\n> > > Date: Tuesday, November 18, 2008, 8:57 AM\n> > > Hi Linus,\n> > > \n> > > I do not understand your email. I used the\n> command,\n> > git\n> > > config --global user.email garyyang6@yahoo.com.\n> But, I\n> > still\n> > > got the same error. Do you have any idea?\n> > > \n> > > Thank you,\n> > > \n> > > \n> > > Gary\n> > > \n> > > \n> > > --- On Sun, 11/16/08, Linus Torvalds\n> > > <torvalds@linux-foundation.org> wrote:\n> > > \n> > > > From: Linus Torvalds\n> > > <torvalds@linux-foundation.org>\n> > > > Subject: Re: \"secret key not\n> > available\".\n> > > \"unable to sign the tag\".\n> > > > To: \"Jeff King\"\n> <peff@peff.net>\n> > > > Cc: \"Gary Yang\"\n> > <garyyang6@yahoo.com>,\n> > > 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\n> it\n> > is\n> > > unable\n> > > > to deduce it from\n> > > > > doing host lookups. Try:\n> > > > > \n> > > > >   git config --global user.email\n> > > garyyang6@yahoo.com\n> > > > > \n> > > > > or whatever email address you used when\n> you\n> > > created\n> > > > the key, and then\n> > > > > gpg should find it appropriately.\n> > > > \n> > > > Side note: sometimes you might want to use a\n> > different\n> > > 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\n> xyz\" if\n> > you\n> > > > don't want to edit the \n> > > > config file manually). \n> > > > \n> > > > This can be especially useful if you use\n> > different\n> > > keys for\n> > > > different \n> > > > projects, even if you want to be known under\n> the\n> > same\n> > > name\n> > > > in both. Or \n> > > > because you want to have the local hostname\n> in\n> > your\n> > > 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> > --\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> --\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":"96165","messageId":"alpine.LFD.2.00.0811190740200.18283@nehalem.linux-foundation.org","threadId":"16382","inReplyTo":"31942.12221.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-19T15:42:43Z","receivedAt":"2008-11-19T15:42:43Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\n\nOn Tue, 18 Nov 2008, Gary Yang wrote:\n> \n> The gpg works. But, git tag dose not work. Any idea?\n\nDoes\n\n\tgit tag -u garyyang6@yahoo.com tag-name\n\nwork (ie when you use an explicitly given key to tag with)?\n\nAnd if not, please do list the output of \"gpg -K\" if that doesn't work.\n\n\t\t\tLinus\n"},{"id":"96173","messageId":"86367.3986.qm@web37907.mail.mud.yahoo.com","threadId":"16382","inReplyTo":"alpine.LFD.2.00.0811190740200.18283@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-19T16:54:14Z","receivedAt":"2008-11-19T16:54:14Z","isPatch":false,"sender":{"key":"garyyang6@yahoo.com","avatar":null},"body":"The command, \"git tag -u garyyang6@yahoo.com tag-name\" works! Thank you! \nBelow is the output of \"gpg -k\". I have no idea why I have three keys.\n\n\ngpg -k\ngpg: WARNING: using insecure memory!\ngpg: please see http://www.gnupg.org/faq.html for more information\n/home/garyyang6/.gnupg/pubring.gpg\n----------------------------------\npub  1024D/A3F6A45E 2008-11-14 Gary Yang (For git.) <garyyang6@yahoo.com>\nsub  1024g/58AE6B3C 2008-11-14\n\npub  1024D/EE763A89 2008-11-14 Gary Yang (PGP for git.) <garyyang6@yahoo.com>\nsub  1024g/AECCA323 2008-11-14\n\npub  1024D/5015631E 2008-11-18 Gary Yang (For git) <garyyang6@yahoo.com>\n\n\n\n--- On Wed, 11/19/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: \"Gary Yang\" <garyyang6@yahoo.com>\n> Cc: \"Jeff King\" <peff@peff.net>, \"Git Mailing List\" <git@vger.kernel.org>\n> Date: Wednesday, November 19, 2008, 7:42 AM\n> On Tue, 18 Nov 2008, Gary Yang wrote:\n> > \n> > The gpg works. But, git tag dose not work. Any idea?\n> \n> Does\n> \n> \tgit tag -u garyyang6@yahoo.com tag-name\n> \n> work (ie when you use an explicitly given key to tag with)?\n> \n> And if not, please do list the output of \"gpg -K\"\n> if that doesn't work.\n> \n> \t\t\tLinus\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":"133599","messageId":"1265283884656-4512970.post@n2.nabble.com","threadId":"16382","inReplyTo":"86367.3986.qm@web37907.mail.mud.yahoo.com","subject":"Re: \"secret key not available\". \"unable to sign the tag\".","fromName":"SASh-4","fromEmail":"alexiev@gmail.com","sentAt":"2010-02-04T11:44:44Z","receivedAt":"2010-02-04T11:44:44Z","isPatch":false,"sender":{"key":"alexiev@gmail.com","avatar":null},"body":"\nI had the same problem. Turned out that the user.name must also match the one\nin the gpg! Hope this helps!\n-- \nView this message in context: http://n2.nabble.com/secret-key-not-available-unable-to-sign-the-tag-tp1500685p4512970.html\nSent from the git mailing list archive at Nabble.com.\n"}]}