Problems Signing Code of Conduct

Asked by Seekker on 2007-03-02

I have created my public key and have uploaded it.
I have imported my fingerprint to the ubuntu key server
I have received an encrypted email which is supposed to contain instructions on how to validate my key.

I have saved the encoded message to a text file and have tried to decrypt it using:

gpg -d message.txt

I receive the following:

gpg: no valid OpenPGP data found.
gpg: decrypt_message failed: eof

Can someone please tell me what I'm doing wrong? Thank you.

Question information

English Edit question
Ubuntu gnupg Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Seekker (seekker) said : #1

When I say that I've saved the encoded message to a text file, I mean that I have c&p'ed just the encoded part of the email to the text file, ie, the bit between the

Version: GnuPG v1.4.2.2 (GNU/Linux)



Do I need to include those lines too?

Michael Bienia (geser) said : #2

Yes, those lines are necessary.
Copy everything from -----BEGIN PGP MESSAGE----- to -----END PGP MESSAGE----- (including those lines) into a text file and it should work.

I too got lost after receiving the email with confirmation.
What do I have to do next?

Seekker (seekker) said : #4

Okay, I've copied everything [including the lines mentioned above] into a file named message.txt, when I give the following command:

gpg -d message.text

I get the following error message still:

gpg: no valid OpenPGP data found.
gpg: decrypt_message failed: eof

Seekker (seekker) said : #5

correction to my above ..

I gave the gpg -d message.txt command [not message.text].

Sorry for any confusion.

Leandro Gómez (leogg) said : #6


Check that you've copied & pasted the message correctly; not removing additional 'spaces' at the end of the message can result in an error.

Seekker (seekker) said : #7

This appears to have been the problem, Leo ... I was indeed deleting the extra spaces at the end of the message ... now I'm getting a message that says I need a passphrase ...

Thank you for the HowTo ... that's exactly what I've been looking for ...

hopefully, I'll be a fully 'authenticated' ubuntero soon!

Will report back here if I solve this so we can close the ticket

Best Seekker (seekker) said : #8



Thank you, Thank you, Thank you!!!

Alfredzo Nash (lfrdznash) said : #9

gpg: can't open `UbuntuCodeOfConduct-1.0.1.txt': No such file or directory
gpg: UbuntuCodeOfConduct-1.0.1.txt: clearsign failed: file open error

  i recieved the following error after entering my paraphrase. is this gonna help too..

Alfredzo Nash (lfrdznash) said : #10

and the file exist in the tmp folder

Michael Bienia (geser) said : #11

Are you in the tmp folder where the file is when you call gpg on it? Alternatively you can also specify the complete path to that file when calling gpg.

Punisher (v-for-vasilis7) said : #12

I have the same problem with you Alfredzo Nash and i cannot find a solution

Catarina (catarinafs) said : #13

@Alfredzo Nash and Punsisher: Not sure if you already figured out the problem, but I just found out the solution, because I experienced the same thing today.

So first make sure you know the path to the folder where you've got "UbuntuCodeofConduct-1.0.1.txt" saved. In this tutorial, it will be /home/user/Documents.

Then open up a terminal, and start typing:

$ cd /home/user/Documents
~/Documents$ gpg --clearsign UbuntuCodeofConduct-1.0.1.txt

You need a passphrase to unlock the secret key for
user: "User (My User PGP Key) <email address hidden>"
1024-bit DSA key, ID XXXXXXXX, created 2007-05-03

And that should be it. Open the folder and you'll see a new file there: "UbuntuCodeofConduct-1.0.1.txt.asc"

Catarina (catarinafs) said : #14

Para os portugueses por aí fora, fica aqui a tradução do meu post anterior:

Como muitos outros, alguns experenciaram um pequeno problema ao tentar usar o comando: "gpg --clearsign UbuntuCodeofConduct-1.0.1.txt". Hoje eu fui uma dessas pessoas, e como descobri o erro que estava a cometer, decidi partilhar com os outros. Espero que este mini-tutorial ajude ;)

Primeiro, comecem por garantir que sabem o caminho para a pasta onde têm guardado o ficheiro "UbuntuCodeofConduct-1.0.1.txt". Neste caso, será /home/user/Documentos.

Depois abram a consola e escrevam:

$ cd /home/user/Documentos
~/Documentos$ gpg --clearsign UbuntuCodeofConduct-1.0.1.txt

You need a passphrase to unlock the secret key for
user: "User (My User PGP Key) <email address hidden>"
1024-bit DSA key, ID XXXXXXXX, created 2007-05-03

E já está. Agora abram a pasta e verão um novo ficheiro lá: "UbuntuCodeofConduct-1.0.1.txt.asc"

HELP! What am I'm doing wrong this time?

gpg --clearsign UbuntuCodeofConduct-1.1.txt

You need a passphrase to unlock the secret key for
user: "Carolyn Crandall <email address hidden>"
2048-bit RSA key, ID 9A11A671, created 2012-04-03

File `UbuntuCodeofConduct-1.1.txt.asc' exists. Overwrite? (y/N)


Decryption of this file failed:

gpg --list-keys ptosis UbuntuCodeofConduct-1.1.txt
gpg: error reading key: public key not found

gpg --fingerprint ; gpg --list-keys
pub 2048R/9A11A671 2012-04-03
      Key fingerprint = F0B2 9DA3 9502 1E66 4C85 82BC A171 1BE2 9A11 A671
uid Carolyn Crandall <email address hidden>
sub 2048R/3CF1A2D2 2012-04-03

pub 2048R/9A11A671 2012-04-03
uid Carolyn Crandall <email address hidden>
sub 2048R/3CF1A2D2 2012-04-03

All I want to do is use cinelerra, yet I have to go through all these contortions and digitally sign to activate PPA when if I was in SUSE it was just a i-click rmp install.....

(7, 8, u'Bad signature') is my error when I try to sign with the following as instructed on the Q&A page.:

I tried tagging the end with -----END PGP MESSAGE----- and it still says NFG.

Hash: SHA1

= Ubuntu Code of Conduct v1.1 =

This Code of Conduct covers our behaviour as members of the Ubuntu
Community, in any forum, mailing list, wiki, web site, IRC channel,
install-fest, public meeting or private correspondence. Ubuntu
governance bodies are ultimately accountable to the Ubuntu Community
Council and will arbitrate in any dispute over the conduct of a member
of the community.

      '''Be considerate.''' Our work will be used by other people, and
      we in turn will depend on the work of others. Any decision we take
      will affect users and colleagues, and we should take those
      consequences into account when making decisions. Ubuntu has
      millions of users and thousands of contributors. Even if it's not
      obvious at the time, our contributions to Ubuntu will impact the
      work of others. For example, changes to code, infrastructure,
      policy, documentation, and translations during a release may
      negatively impact others' work.

      '''Be respectful.''' The Ubuntu community and its members treat
      one another with respect. Everyone can make a valuable
      contribution to Ubuntu. We may not always agree, but disagreement
      is no excuse for poor behaviour and poor manners. We might all
      experience some frustration now and then, but we cannot allow that
      frustration to turn into a personal attack. It's important to
      remember that a community where people feel uncomfortable or
      threatened is not a productive one. We expect members of the
      Ubuntu community to be respectful when dealing with other
      contributors as well as with people outside the Ubuntu project and
      with users of Ubuntu.

      '''Be collaborative.''' Collaboration is central to Ubuntu and to
      the larger free software community. This collaboration involves
      individuals working with others in teams within Ubuntu, teams
      working with each other within Ubuntu, and individuals and teams

Version: GnuPG v1.4.11 (GNU/Linux)


Gave up on signing the COC - I finally got Cinelerra in to install - without it. Such a horrible process this is.