Gentoo Archives: gentoo-dev

From: Bjarke Istrup Pedersen <gurligebis@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Problem signing manifests for ebuilds
Date: Mon, 11 Jul 2011 09:13:57
Message-Id: CACPM=kU-FuVgFiWc2s-gwi86rmKnAsNrH9dxNkk7e3wr3ZTjHA@mail.gmail.com
In Reply to: Re: [gentoo-dev] Problem signing manifests for ebuilds by Markos Chandras
1 2011/7/8 Markos Chandras <hwoarang@g.o>:
2 > -----BEGIN PGP SIGNED MESSAGE-----
3 > Hash: SHA512
4 >
5 > On 08/07/2011 10:08 ??, Bjarke Istrup Pedersen wrote:
6 >> 2011/7/7 Markos Chandras <hwoarang@g.o>:
7 >> On 07/07/2011 10:57 ??, Bjarke Istrup Pedersen wrote:
8 >>>>> I'm having a problem signing manifests from time to time (it's random
9 >>>>> if it works or not).
10 >>>>>
11 >>>>> When I run repoman commit, sometimes it asks for my password, and
12 >>>>> signs it just fine.
13 >>>>> But sometimes it just fails silently with the following error:
14 >>>>>
15 >>>>> You need a passphrase to unlock the secret key for
16 >>>>> user: "Bjarke Istrup Pedersen <gurligebis@g.o>"
17 >>>>> 1024-bit DSA key, ID 14576049, created 2008-08-20
18 >>>>>
19 >>>>> gpg: cancelled by user
20 >>>>> gpg: no default secret key: Operation cancelled
21 >>>>> gpg: ./Manifest: clearsign failed: Operation cancelled
22 >>>>> !!! !!! gpg exited with '512' status
23 >>>>> !!! Disabled FEATURES='sign'
24 >>>>>
25 >>>>> Does anyone have an idea of why it fails to sign it randomly?
26 >>>>>
27 >>>>> /Bjarke
28 >>>>>
29 >> What happens if you edit your ~/.gnupg/gpg.conf and add
30 >>
31 >> default-key 14576049 ?
32 >>
33 >>> Hey again,
34 >>
35 >>> Nope, that doesn't do it, it still fails with the error:
36 >>
37 >>> gpg: cancelled by user
38 >>> gpg: no default secret key: Operation cancelled
39 >>> gpg: ./Manifest: clearsign failed: Operation cancelled
40 >>
41 >>> What puzzles me is why it is random if it asks for my password and
42 >>> signs it or not.
43 >>
44 >>
45 >>>
46 >>>
47 > You can try to setup keychain[1] so you only have to type your password once
48 >
49 > [1]http://www.gentoo.org/doc/en/keychain-guide.xml
50 > - --
51
52 I've tried that, it still does not work.
53 Even if I just login as myself and do something like this:
54
55 gurligebis@raven ~ $ echo "blah" > test
56 gurligebis@raven ~ $ gpg -n --sign test
57
58 You need a passphrase to unlock the secret key for
59 user: "Bjarke Istrup Pedersen <gurligebis@g.o>"
60 1024-bit DSA key, ID 14576049, created 2008-08-20
61
62 gpg: cancelled by user
63 gpg: no default secret key: Operation cancelled
64 gpg: signing failed: Operation cancelled
65
66 I cannot figure out why gpg insists that I have cancelled anything,
67 when it by itself fails silently.
68 Any ideas? :)
69
70 > Regards,
71 > Markos Chandras / Gentoo Linux Developer / Key ID: B4AFF2C2
72 > -----BEGIN PGP SIGNATURE-----
73 > Version: GnuPG v2.0.17 (GNU/Linux)
74 >
75 > iQIcBAEBCgAGBQJOFrfTAAoJEPqDWhW0r/LCYhwQALCPT6+j3K4/YxlpgR16IBwm
76 > 2tu9OCvPqXzhiirNyfjUGZBjyufwRiAq0EIyohKjrFuPXV5MOd+kBT5nxxM7ptlQ
77 > 3lrnYobm7ccIPDXRuNfwg176nzJEa9r+dhoWBFi3x3vzBuWDVDJ2nyH9QLhGm+0G
78 > wrxpNn5twu4kfrfXW1iCSxD+rHFzmdVawEBMPJMflxquInH4DT+qIRZGTk20BXQz
79 > KvxS2F+5QWhSCfg7uo0M+hB+yRau41jE4vuGRD7sl2xclw1emldP8RJ/020RYj85
80 > b3ZdsMWK8MUfgoR7gtL3eVR8Lk/HWrCK1QoczT9rcXx1Guei9nGlkc6673pNfphl
81 > PGE+MiH0EKS80oUW57beT0VqnryTdyDfGOtrE58nw4nm9WyDEbnJTZRBAIPFNGBA
82 > 1d7OPaM/XiuvyIv37x/5Z5zjqSgvJMkmcxf1AtQz1rpXoeEU6kEcP2pwcSx3fi1m
83 > uIiYm2MGS1oCzFEPN8F/ZZ0/Pt3GGWsqukNPf4bC/6VLLVsMxbHBzmurma22oB9B
84 > T/3ESOglow3kS7Cqvzj55rt+GIZynLNSCPyvh8NCzanSNdlZUktpEpmAj9TmKSRM
85 > XUUZv/reR1TXrFcQUkHtLczrerroqcq/fP30qqqABsckxtDJRwnAY/LPA0YMcy6H
86 > cYuRRDC4UPlLtb3PF9PM
87 > =1IbZ
88 > -----END PGP SIGNATURE-----
89 >
90 >

Replies

Subject Author
[gentoo-dev] Re: Problem signing manifests for ebuilds Jonathan Callen <abcd@g.o>