1 |
On 12/22/2015 03:04 PM, Rich Freeman wrote: |
2 |
> On Tue, Dec 22, 2015 at 8:31 AM, Patrick Lauer <patrick@g.o> wrote: |
3 |
>>> Do you want to see this fixed? |
4 |
>>> Are you willing to do the fixing yourself? |
5 |
>> I don't have infinite time, and wasting a day documenting things that |
6 |
>> should have been documented a year ago is not a good way of spending time. |
7 |
> So, it sounds like the answer to the first question is yes, and the |
8 |
> second is no... |
9 |
I shouldn't have to clean up other people's mess. I mean, cleaning up |
10 |
after toddlers is ok, but, well ... sigh. |
11 |
Are any of you toddlers? :D |
12 |
|
13 |
> |
14 |
>>> If the answer to the first question is yes, and the second is no, then |
15 |
>>> you've just volunteered for the job of either community motivator, or |
16 |
>>> frustrated user. The goal then is to make people care more about |
17 |
>>> going out of their way to fix things than going out of their way to |
18 |
>>> find ways to make you even more frustrated. Which do you think is |
19 |
>>> going to be more emotionally satisfying to those who read this thread? |
20 |
>>> |
21 |
>> Things working. |
22 |
>> |
23 |
>> So, the trick is not to have user-visible breakage. |
24 |
>> |
25 |
>> Now you know the great trick too and can apply it to your daily life. |
26 |
>> |
27 |
> Yeah, but if I don't lift a finger to help fix this bug, I know it |
28 |
> will drive you crazy for a few more days, or even months. That's |
29 |
> basically my point. You're basically begging everybody who would |
30 |
> otherwise want to fix this issue to just troll you instead. And that |
31 |
> isn't helpful to anybody. |
32 |
> |
33 |
> You can't just wave your hands and have no user-visible breakage. You |
34 |
> either need to fix things yourself or help motivate others to do it. |
35 |
> The approach you're taking is about as helpful as telling your |
36 |
> significant other that they're fat. After they're finished stabbing |
37 |
> you to death with their spoon they're going to stick it in some Ben |
38 |
> and Jerry's. |
39 |
> |
40 |
> Ugh, gotta take a break. Happy holidays! |
41 |
> |
42 |
So here's the magic: |
43 |
|
44 |
Create a file "keyspec.txt" containing something like: |
45 |
|
46 |
""" |
47 |
%echo Generating a basic OpenPGP key |
48 |
Key-Type: RSA |
49 |
Key-Length: 4096 |
50 |
Key-Usage: sign |
51 |
Expire-Date: 1y |
52 |
Subkey-Type: RSA |
53 |
Subkey-Length: 4096 |
54 |
Subkey-Usage: sign |
55 |
Name-Real: Patrick Lauer |
56 |
Name-Email: changethis@×××××.xyz |
57 |
Passphrase: ThisIsBadPassphrayse |
58 |
%commit |
59 |
%echo done |
60 |
""" |
61 |
Not that Name-* and Passphrase should be personalized (or Passphrase |
62 |
removed!) |
63 |
|
64 |
Now make a backup of .gnupg because this will be destructive. |
65 |
Do not run this command as a normal user unless you are sure you want to |
66 |
overwrite the default keyring. |
67 |
|
68 |
So now that we are sure that you don't accidentally all your keys (do |
69 |
not run this for fun! This is a destructive command) |
70 |
|
71 |
""" |
72 |
gpg --batch --gen-key keyspec.txt |
73 |
""" |
74 |
|
75 |
Tadaah! (well, it'll take a few minutes, since gpg wants really sexy |
76 |
entropy and takes its time to get there) |
77 |
|
78 |
The part I haven't figured out yet is how to non-interactively set key |
79 |
validity, so you will need to run a second command: |
80 |
|
81 |
""" |
82 |
gpg --edit-key expire |
83 |
""" |
84 |
and set validity to, say, 3 years, confirm, save, done. |
85 |
|
86 |
|
87 |
(This mostly obsoletes the 500 lines of eyebleed that were gkeys-gen, |
88 |
and it actually works. Do you understand why I'm feeling very confused |
89 |
that something this trivial took over a year?!) |
90 |
|
91 |
Time from start of RTFM to email: 1h. |