Unable to Sign Code of Conduct

Asked by Ian Barton

Hi,

I followed the instructions and pasted the signed copy of the Code into the text box. When I submit the form I get the following
error "(7, 9, u'No public key')". I have registered a PGP key. I am guessing that running gpg --clearsign UbuntuCodeofConduct-1.1.txt is somehow using a different key to the one I uploaded to Launchpad.

Ian.

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Curtis Hovey
Solved:
Last query:
Last reply:
Revision history for this message
Best Curtis Hovey (sinzui) said :
#1

There are two common reasons for failure.

A. The public key has not propogates to all ubuntu keyservers so Launchpad is not finding it. 10 minutes should be enough, but I have heard reports that it has taken 24 hours.

B. You have more than one key and the defaultt key is not the one Launchpad knows about (F7C1C52D). You can specify the key to use:
    gpg -u F7C1C52D --clearsign

Revision history for this message
Ian Barton (ian-manor-farm) said :
#2

Thanks Curtis Hovey, that solved my question.

Revision history for this message
Ian Barton (ian-manor-farm) said :
#3

IThe problem was B:

You have more than one key and the defaultt key is not the one Launchpad knows about (F7C1C52D). You can specify the key to use:
    gpg -u F7C1C52D --clearsign

Ian.

Revision history for this message
Vikram Hosakote (vhosakot) said :
#4

Thanks. Yes, I ran "gpg --fingerprint", found out the key I registered in Launchpad, and used that key for the "-u" argument to sign the Ubuntu code of conduct.

gpg -u B6860DC9 --clearsign <Ubuntu_code_of_conduct_filename>

Then, I did not get the "(7, 9, u'No public key')" error when I pasted the contents of the *.asc file in Launchpad, and I was able to successfully sign the Ubuntu code of conduct.

Revision history for this message
Bodie Solomon (bodie) said :
#5

I'm getting this error even though the keyserver.ubuntu.com lookup shows my key in the registry.

Revision history for this message
Bodie Solomon (bodie) said :
#6

Looks like it just took a few minutes to sync to whatever server was responsible for checking the signature.

Revision history for this message
Chigozirim Chukwu (eugenerjones) said :
#7

Don't open the file with a text editor before pasting into the box. I was copying the file from sublime and I think sublime added some extra characters to it; Like the newline at the end for example.

What I eventually did instead was to copy the content via the command line straight into the clipboard

cat UbuntuCodeofConduct-2.0.txt.asc | clipcopy

I use zsh with oh-my-zsh and that's where the clipcopy command comes from:
https://github.com/robbyrussell/oh-my-zsh/blob/master/lib/clipboard.zsh