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

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnupg Edit question
Assignee:
No assignee Edit question
Solved by:
Seekker
Solved:
2007-03-05
Last query:
2007-03-05
Last reply:
2007-03-04
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

-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

and

-----END PGP MESSAGE-----

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

Seekker:

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

https://help.ubuntu.com/community/GnuPrivacyGuardHowto

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

Whee!!!!!!!!!!!!!!!

Success!!!!

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)

Y

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
/home/ptosis/.gnupg/pubring.gpg
-------------------------------
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

/home/ptosis/.gnupg/pubring.gpg
-------------------------------
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.

-----BEGIN PGP SIGNED MESSAGE-----
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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBAgAGBQJPexHXAAoJEKFxG+KaEaZx9sEH/1TTFyVkyMXT0qSI/P2ttCla
VqLIU24eWqFv58prKYshXJsT37/WXHhBoPmCl3CVsFt7caviDliuWERG0EGvCOPF
WXc4MnXnI2TvE5pOfSn7sLXm5/6l7B1Kkyrr9caEbS3DS8D+8NjPHYn5YULLqgtA
0RUPVncMGZC/q8mrXlNFDlJB7BzYt6aaYPUhxRktTY15yBiKeyd0J5bMR9Zk6k2s
w5ER2+c9KlVPREP/fF+c0igvHkjducRQiCfXNj0algm2JBlSeXp6MtKmW6jBCyiK
M2BkG92uuXhfSnCjUroor5Xzl/8V8GITRztn/Tcnd0UuHbqXy8gIwaDfWjPFCSw=
=56hO
-----END PGP SIGNATURE-----

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