Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to sign public key #247

Closed
incanus opened this issue Mar 13, 2014 · 11 comments
Closed

unable to sign public key #247

incanus opened this issue Mar 13, 2014 · 11 comments

Comments

@incanus
Copy link

incanus commented Mar 13, 2014

I've tried several times, but I can't get it to work. I get:

Bad signature uploaded: We don't have a key for the requested PGP ops

My key, if it's useful:

http://pgp.mit.edu/pks/lookup?op=get&search=0xF7877A2BC9C40C31

It has two revoked identities on it (old email addresses), if that helps.

@maxtaco
Copy link
Contributor

maxtaco commented Mar 13, 2014

Thanks, I'll try to take a look tonight. Can you send me the signature you tried to upload too? Many thanks. It's 100% public, feel free to post it into this issue.

@incanus
Copy link
Author

incanus commented Mar 13, 2014

-----BEGIN PGP MESSAGE-----
Version: GnuPG v1

owFtkDtLA0EUhdf4AEME40+YSpNFdvY1m60lraBF7NbZ2bvJYJxd9xHzIIVp1ELw
BwSsLO3sbCxsRLCzEyysbdJY6mzAzmkuc8537r3c67VFpVT9Ph/Wn58qeOHlcegr
+2jjfoT8KBggd4SOYF5CLtqQxAkXGXKRrhs4CEPNsRsABrUcx6JAAjMkDiFU91mD
mRozMFJRJ0qLhGzj0xS2eSQ1+fF4INV/+HxuMMegPtEYJpiZmDqmqVkG0a3AsIEQ
TSvAFBJBj0HSXDAq8hSNVZQN4kI5Bd+Tfo8z8HwuArm9jPQgSXkkkIslyTJehLHR
MImJG4atIujHPAGPF4RFbEeTT0VxAj3kirzbVVEKJyKSrhxE23JOytuCZnkCaFy+
aC4p1ZKyslwqLqiUV9f/7nr2o0wr00Ft9tHf6hweTK92hzut1ueectN5r802HyZN
/VVM7uqX0dftG/sF
=1uTZ
-----END PGP MESSAGE-----

@maxtaco
Copy link
Contributor

maxtaco commented Mar 13, 2014

Gracias. I'm in the middle of something now, I'll take a look when I hit a good stopping point.

@maxtaco
Copy link
Contributor

maxtaco commented Mar 13, 2014

So I see what's going on, though I'm not quite sure what to do. Your key lacks any key flags, so our software can't figure out how to verify the given signature. I guess we can take the attitude that the primary key should always be used for verification purposes...

@incanus
Copy link
Author

incanus commented Mar 13, 2014

Cool. This could date from the fact that the current only ID on the keychain was a secondary (actually, tertiary one) and the original was revoked. It may even be that key flags automatically get applied properly now, but I would have done this circa 2001. I can add the flags?

@incanus
Copy link
Author

incanus commented Mar 13, 2014

Hmm, been digging around and my key does appear to have flags on it. When editing:

Secret key is available.

pub  1024D/C9C40C31  created: 2001-05-25  expires: never       usage: SCA 
                     trust: ultimate      validity: ultimate
sub  1024g/xxxxxxxx  created: 2001-05-25  expires: never       usage: E   
[ultimate] (1). Justin R. Miller <incanus@xxxxxxxx.xxx>

The SCA means sign/certify/authenticate and the E on the private means encrypt, which makes sense. So it appears to have flags?

@maxtaco
Copy link
Contributor

maxtaco commented Mar 13, 2014

Oh interesting. There might be a sensible default that gpg is applying or
maybe there is a different way to convey key flags. I will investigate
further tonight when I get home.
On Mar 13, 2014 6:27 PM, "Justin R. Miller" notifications@github.com
wrote:

Hmm, been digging around and my key does appear to have flags on it.
When editing:

Secret key is available.

pub 1024D/C9C40C31 created: 2001-05-25 expires: never usage: SCA
trust: ultimate validity: ultimate
sub 1024g/xxxxxxxx created: 2001-05-25 expires: never usage: E
ultimate. Justin R. Miller incanus@xxxxxxxx.xxx

The SCA means sign/certify/authenticate and the E on the private means
encrypt, which makes sense. So it appears to have keys?

Reply to this email directly or view it on GitHubhttps://github.com//issues/247#issuecomment-37594777
.

@maxtaco
Copy link
Contributor

maxtaco commented Mar 14, 2014

Another theory is that with DSA and ElGamal, it's obvious which key to use for what. I think I have a fix I can roll out for you in an hour or two.

@maxtaco
Copy link
Contributor

maxtaco commented Mar 14, 2014

Ok, fix is live, let me know if you still have problems. Thanks for your feedback!

@incanus
Copy link
Author

incanus commented Mar 14, 2014

Booyah, works! 👍

@maxtaco
Copy link
Contributor

maxtaco commented Mar 14, 2014

Booyah indeed. Thanks Justin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants