* "secret key not available". "unable to sign the tag". @ 2008-11-14 23:28 Gary Yang 2008-11-15 3:57 ` Jeff King 2008-11-18 20:22 ` Gary Yang 0 siblings, 2 replies; 14+ messages in thread From: Gary Yang @ 2008-11-14 23:28 UTC (permalink / raw) To: git Hi, I got errors and warnings when I used "git tag -s my-tag". It says, "secret key not available". "unable to sign the tag". 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. Thank, Gary ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: "secret key not available". "unable to sign the tag". 2008-11-14 23:28 "secret key not available". "unable to sign the tag" Gary Yang @ 2008-11-15 3:57 ` Jeff King 2008-11-17 0:16 ` Linus Torvalds 2008-11-18 1:59 ` Gary Yang 2008-11-18 20:22 ` Gary Yang 1 sibling, 2 replies; 14+ messages in thread From: Jeff King @ 2008-11-15 3:57 UTC (permalink / raw) To: Gary Yang; +Cc: git 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: "secret key not available". "unable to sign the tag". 2008-11-15 3:57 ` Jeff King @ 2008-11-17 0:16 ` Linus Torvalds 2008-11-18 16:55 ` Gary Yang 2008-11-18 16:57 ` Gary Yang 2008-11-18 1:59 ` Gary Yang 1 sibling, 2 replies; 14+ messages in thread From: Linus Torvalds @ 2008-11-17 0:16 UTC (permalink / raw) To: Jeff King; +Cc: Gary Yang, git 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: "secret key not available". "unable to sign the tag". 2008-11-17 0:16 ` Linus Torvalds @ 2008-11-18 16:55 ` Gary Yang 2008-11-18 16:57 ` Gary Yang 1 sibling, 0 replies; 14+ messages in thread From: Gary Yang @ 2008-11-18 16:55 UTC (permalink / raw) To: Jeff King, Linus Torvalds; +Cc: git Hi Jeff, 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? Thanks, Perry --- 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: "secret key not available". "unable to sign the tag". 2008-11-17 0:16 ` Linus Torvalds 2008-11-18 16:55 ` Gary Yang @ 2008-11-18 16:57 ` Gary Yang 1 sibling, 0 replies; 14+ messages in thread From: Gary Yang @ 2008-11-18 16:57 UTC (permalink / raw) To: Jeff King, Linus Torvalds; +Cc: git 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: "secret key not available". "unable to sign the tag". 2008-11-15 3:57 ` Jeff King 2008-11-17 0:16 ` Linus Torvalds @ 2008-11-18 1:59 ` Gary Yang 2008-11-18 4:21 ` Linus Torvalds 1 sibling, 1 reply; 14+ messages in thread From: Gary Yang @ 2008-11-18 1:59 UTC (permalink / raw) To: Jeff King; +Cc: git 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: > 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: "secret key not available". "unable to sign the tag". 2008-11-18 1:59 ` Gary Yang @ 2008-11-18 4:21 ` Linus Torvalds 0 siblings, 0 replies; 14+ messages in thread From: Linus Torvalds @ 2008-11-18 4:21 UTC (permalink / raw) To: Gary Yang; +Cc: Jeff King, git On Mon, 17 Nov 2008, Gary Yang wrote: > > 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 What does gpg --list-secret-keys say? Have you actually set up a key for that email address? Linus ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: "secret key not available". "unable to sign the tag". @ 2008-11-18 20:22 ` Gary Yang 2008-11-18 20:26 ` Gary Yang 0 siblings, 1 reply; 14+ messages in thread From: Gary Yang @ 2008-11-18 20:22 UTC (permalink / raw) To: Jeff King, Linus Torvalds; +Cc: git 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: "secret key not available". "unable to sign the tag". 2008-11-18 20:22 ` Gary Yang @ 2008-11-18 20:26 ` Gary Yang 2008-11-18 21:20 ` Gary Yang 0 siblings, 1 reply; 14+ messages in thread From: Gary Yang @ 2008-11-18 20:26 UTC (permalink / raw) To: Jeff King, Linus Torvalds; +Cc: git 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: "secret key not available". "unable to sign the tag". 2008-11-18 20:26 ` Gary Yang @ 2008-11-18 21:20 ` Gary Yang 2008-11-19 15:42 ` Linus Torvalds 0 siblings, 1 reply; 14+ messages in thread From: Gary Yang @ 2008-11-18 21:20 UTC (permalink / raw) To: Jeff King, Linus Torvalds; +Cc: git 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: "secret key not available". "unable to sign the tag". 2008-11-18 21:20 ` Gary Yang @ 2008-11-19 15:42 ` Linus Torvalds 2008-11-19 16:54 ` Gary Yang 0 siblings, 1 reply; 14+ messages in thread From: Linus Torvalds @ 2008-11-19 15:42 UTC (permalink / raw) To: Gary Yang; +Cc: Jeff King, Git Mailing List 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: "secret key not available". "unable to sign the tag". 2008-11-19 15:42 ` Linus Torvalds @ 2008-11-19 16:54 ` Gary Yang 2010-02-04 11:44 ` SASh-4 0 siblings, 1 reply; 14+ messages in thread From: Gary Yang @ 2008-11-19 16:54 UTC (permalink / raw) To: Linus Torvalds; +Cc: Jeff King, Git Mailing List 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: "secret key not available". "unable to sign the tag". 2008-11-19 16:54 ` Gary Yang @ 2010-02-04 11:44 ` SASh-4 0 siblings, 0 replies; 14+ messages in thread From: SASh-4 @ 2010-02-04 11:44 UTC (permalink / raw) To: git 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. ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <49236F67.6080807@pcharlan.com>]
* Re: "secret key not available". "unable to sign the tag". [not found] <49236F67.6080807@pcharlan.com> @ 2008-11-19 2:19 ` Gary Yang 0 siblings, 0 replies; 14+ messages in thread From: Gary Yang @ 2008-11-19 2:19 UTC (permalink / raw) To: Pete Harlan; +Cc: git FYI, Pete helped me solved the problem. Somehow I got two gpg keys. Pete discovered that and suggested me the proper command to tag the code. I am going to figure out how to remove the extra key. Many thanks to Pete. git tag -u 'For git' -s some-tag Sincerely, Gary --- On Tue, 11/18/08, Pete Harlan <pgit@pcharlan.com> wrote: > From: Pete Harlan <pgit@pcharlan.com> > Subject: Re: "secret key not available". "unable to sign the tag". > To: garyyang6@yahoo.com > Date: Tuesday, November 18, 2008, 5:44 PM > Hi Gary, > > No output doesn't mean anything is wrong, just that my > suggestion wasn't > useful. > > I saw from your other post that you use C-shell. I tried > things here > using C-shell and it all worked as expected. > > One odd-looking thing is that when you show it working from > the > command-line it says: > > > > > You need a passphrase to unlock the secret > key for > > > > user: "Gary Yang (For git.) > > > > <garyyang6@yahoo.com>" > > whereas when you show it not working within Git it says: > > > gpg: skipped `Gary Yang > > <garyyang6@yahoo.com>': secret key not > > available > > gpg: signing failed: secret key not available > > which leads me to believe that you have two similarly-named > keys, and > that the command-line gpg is finding the one that has > "For git" in the > name, but git is finding the one that doesn't, and this > second one > doesn't have a secret key available. > > If you try specifying the first key to git: > > git tag -u 'For git' -s some-tag > > does that work? > > --Pete > > > Gary Yang wrote: > > Hi Pete, > > > > I got no output of the commands you told me. That > means I have no environment setup. Can you please tell me > what kind of environment variables need to setup? Thank you > very much! > > > >> env | grep -i gnupg > >> env | grep -i gpg > >> env | grep -i pgp > > > > > > Gary > > > > --- On Tue, 11/18/08, Pete Harlan > <pgit@pcharlan.com> wrote: > > > >> From: Pete Harlan <pgit@pcharlan.com> > >> Subject: Re: "secret key not available". > "unable to sign the tag". > >> To: garyyang6@yahoo.com > >> Date: Tuesday, November 18, 2008, 5:16 PM > >> Gary Yang wrote: > >>> Hi Pete, > >>> > >>> What I should export? Do you have any idea? > >> Hi Gary, > >> > >> I'd look for anything that says gnupg or gpg > in the > >> environment. > >> > >> env | grep -i gnupg > >> env | grep -i gpg > >> env | grep -i pgp > >> > >> I'm afriad it's not much of an idea. If > the above > >> don't match > >> anything, I don't know what to suggest. > >> > >> Good luck, > >> > >> --Pete > >> > >> > >> > >>> > >>> Thank you, > >>> > >>> > >>> Gary > >>> > >>> > >>> > >>> > >>> --- On Tue, 11/18/08, Pete Harlan > >> <pgit@pcharlan.com> wrote: > >>>> From: Pete Harlan > <pgit@pcharlan.com> > >> Subject: Re: "secret key not > >>>> available". "unable to sign the > >> tag". To: garyyang6@yahoo.com Date: > >>>> Tuesday, November 18, 2008, 2:18 PM Gary > Yang > >> wrote: > >>>>> Peter, > >>>>> > >>>>> The gpg works. But, git tag dose not > work. Any > >> idea? > >>>> Could gpg be using something from your > environment > >> that you're not > >>>> exporting, so git can't see it? > >>>> > >>>> --Pete > >>>> > >>>> > >>>>> 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 > >>>>> > > > > > > ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2010-02-04 11:44 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-11-14 23:28 "secret key not available". "unable to sign the tag" Gary Yang 2008-11-15 3:57 ` Jeff King 2008-11-17 0:16 ` Linus Torvalds 2008-11-18 16:55 ` Gary Yang 2008-11-18 16:57 ` Gary Yang 2008-11-18 1:59 ` Gary Yang 2008-11-18 4:21 ` Linus Torvalds 2008-11-18 20:22 ` Gary Yang 2008-11-18 20:26 ` Gary Yang 2008-11-18 21:20 ` Gary Yang 2008-11-19 15:42 ` Linus Torvalds 2008-11-19 16:54 ` Gary Yang 2010-02-04 11:44 ` SASh-4 [not found] <49236F67.6080807@pcharlan.com> 2008-11-19 2:19 ` Gary Yang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).