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

6 messages, 3 authors, 2016-06-15 · open the first message on its own page

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

From: Gary Yang <hidden>
Date: 2016-06-15 22:45:40

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:
quoted hunk
From: Gary Yang <redacted>
Subject: Re: "secret key not available". "unable to sign the tag".
To: "Jeff King" <redacted>, "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
[off-list ref] wrote:
quoted
From: Linus Torvalds
[off-list ref]
quoted
Subject: Re: "secret key not available".
"unable to sign the tag".
quoted
To: "Jeff King" <redacted>
Cc: "Gary Yang" <redacted>,
git@vger.kernel.org
quoted
Date: Sunday, November 16, 2008, 4:16 PM
On Fri, 14 Nov 2008, Jeff King wrote:
quoted
You need to tell git who you are, since it is
unable
quoted
to deduce it from
quoted
doing host lookups. Try:

  git config --global user.email
garyyang6@yahoo.com
quoted
quoted
or whatever email address you used when you
created
quoted
the key, and then
quoted
gpg should find it appropriately.
Side note: sometimes you might want to use a different
key
quoted
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
quoted
different 
projects, even if you want to be known under the same
name
quoted
in both. Or 
because you want to have the local hostname in your
commit
quoted
logs, but your 
gpg key is using some externally visible
"official" email address.

			Linus

      

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

From: Gary Yang <hidden>
Date: 2016-06-15 22:45:40

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 [off-list ref]': 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:
quoted hunk
From: Gary Yang <redacted>
Subject: Re: "secret key not available". "unable to sign the tag".
To: "Jeff King" <redacted>, "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:
quoted
From: Gary Yang <redacted>
Subject: Re: "secret key not available".
"unable to sign the tag".
quoted
To: "Jeff King" <redacted>,
"Linus Torvalds"
[off-list ref]
quoted
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
quoted
config --global user.email garyyang6@yahoo.com. But, I
still
quoted
got the same error. Do you have any idea?

Thank you,


Gary

--- On Sun, 11/16/08, Linus Torvalds
[off-list ref] wrote:
quoted
From: Linus Torvalds
[off-list ref]
quoted
Subject: Re: "secret key not
available".
quoted
"unable to sign the tag".
quoted
To: "Jeff King" <redacted>
Cc: "Gary Yang"
[off-list ref],
quoted
git@vger.kernel.org
quoted
Date: Sunday, November 16, 2008, 4:16 PM
On Fri, 14 Nov 2008, Jeff King wrote:
quoted
You need to tell git who you are, since it
is
quoted
unable
quoted
to deduce it from
quoted
doing host lookups. Try:

  git config --global user.email
garyyang6@yahoo.com
quoted
quoted
or whatever email address you used when you
created
quoted
the key, and then
quoted
gpg should find it appropriately.
Side note: sometimes you might want to use a
different
quoted
key
quoted
than the one 
you use for authorship. Then you can use

	[user]
		SigningKey = key

(or "git config user.signingkey xyz" if
you
quoted
quoted
don't want to edit the 
config file manually). 

This can be especially useful if you use
different
quoted
keys for
quoted
different 
projects, even if you want to be known under the
same
quoted
name
quoted
in both. Or 
because you want to have the local hostname in
your
quoted
commit
quoted
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

      

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

From: Gary Yang <hidden>
Date: 2016-06-15 22:45:40


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.) [off-list ref]"
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:
quoted hunk
From: Gary Yang <redacted>
Subject: Re: "secret key not available". "unable to sign the tag".
To: "Jeff King" <redacted>, "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 [off-list ref]':
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:
quoted
From: Gary Yang <redacted>
Subject: Re: "secret key not available".
"unable to sign the tag".
quoted
To: "Jeff King" <redacted>,
"Linus Torvalds"
[off-list ref]
quoted
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
quoted
able. Can someone help?

Thanks in advance!


Gary


--- On Tue, 11/18/08, Gary Yang
[off-list ref]
quoted
wrote:
quoted
From: Gary Yang <redacted>
Subject: Re: "secret key not
available".
quoted
"unable to sign the tag".
quoted
To: "Jeff King" <redacted>,
"Linus Torvalds"
[off-list ref]
quoted
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,
quoted
git
quoted
config --global user.email garyyang6@yahoo.com.
But, I
quoted
still
quoted
got the same error. Do you have any idea?

Thank you,


Gary

--- On Sun, 11/16/08, Linus Torvalds
[off-list ref] wrote:
quoted
From: Linus Torvalds
[off-list ref]
quoted
Subject: Re: "secret key not
available".
quoted
"unable to sign the tag".
quoted
To: "Jeff King"
[off-list ref]
quoted
quoted
quoted
Cc: "Gary Yang"
[off-list ref],
quoted
git@vger.kernel.org
quoted
Date: Sunday, November 16, 2008, 4:16 PM
On Fri, 14 Nov 2008, Jeff King wrote:
quoted
You need to tell git who you are, since
it
quoted
is
quoted
unable
quoted
to deduce it from
quoted
doing host lookups. Try:

  git config --global user.email
garyyang6@yahoo.com
quoted
quoted
or whatever email address you used when
you
quoted
quoted
created
quoted
the key, and then
quoted
gpg should find it appropriately.
Side note: sometimes you might want to use a
different
quoted
key
quoted
than the one 
you use for authorship. Then you can use

	[user]
		SigningKey = key

(or "git config user.signingkey
xyz" if
quoted
you
quoted
quoted
don't want to edit the 
config file manually). 

This can be especially useful if you use
different
quoted
keys for
quoted
different 
projects, even if you want to be known under
the
quoted
same
quoted
name
quoted
in both. Or 
because you want to have the local hostname
in
quoted
your
quoted
commit
quoted
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

      

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

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-06-15 22:45:40


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

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

From: Gary Yang <hidden>
Date: 2016-06-15 22:45:40

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.) [off-list ref]
sub  1024g/58AE6B3C 2008-11-14

pub  1024D/EE763A89 2008-11-14 Gary Yang (PGP for git.) [off-list ref]
sub  1024g/AECCA323 2008-11-14

pub  1024D/5015631E 2008-11-18 Gary Yang (For git) [off-list ref]


--- 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" <redacted>
Cc: "Jeff King" <redacted>, "Git Mailing List" <redacted>
Date: Wednesday, November 19, 2008, 7:42 AM
On Tue, 18 Nov 2008, Gary Yang wrote:
quoted
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

      

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

From: SASh-4 <hidden>
Date: 2016-06-15 22:48:10

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help