From: Gary Yang <garyyang6@yahoo.com>
To: Pete Harlan <pgit@pcharlan.com>
Cc: git@vger.kernel.org
Subject: Re: "secret key not available". "unable to sign the tag".
Date: Tue, 18 Nov 2008 18:19:26 -0800 (PST) [thread overview]
Message-ID: <206215.61260.qm@web37901.mail.mud.yahoo.com> (raw)
In-Reply-To: <49236F67.6080807@pcharlan.com>
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
> >>>>>
> >
> >
> >
next parent reply other threads:[~2008-11-19 2:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <49236F67.6080807@pcharlan.com>
2008-11-19 2:19 ` Gary Yang [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=206215.61260.qm@web37901.mail.mud.yahoo.com \
--to=garyyang6@yahoo.com \
--cc=git@vger.kernel.org \
--cc=pgit@pcharlan.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.