Jonathan Wiltshire: Taking good care of your keyring
Recently I was surprised to find that many of the rules I took for granted when dealing with an OpenPGP keyring, and the other activities associated with a web of trust, were new to some people I spoke to. These rules are born from a mixture of experience, accepted good practice, and wider reading, with a small dose of paranoia thrown in for good measure.
- Protect your secret keyring with file permissions. For GPG, your ~/.gnupg directory should not be readable by anybody else, including root (even though he could break in if he wanted). Mine is octal 700, and the secret keyring itself is 600.
- Create a revocation certificate, and keep online and offline copies (gpg --gen-revoke <keyid>). The revocation certificate is published to key servers by you in the event that you detect key compromise or loss. It s important that this is also well-protected, because the secret key is not required to upload it. Print a copy in bold and on good quality paper, so it will last a long time, and preferably keep them both off-site in a trusted location. Typing all those characters back in is a bore, but if your online copy fails it s better than being impersonated.
- Use a good pass-phrase, not a password. A pass-phrase is actually easier to remember than a string of random characters, without risk. It can be long enough to make brute-force attacks pointless, and if you re using the key a lot and can t be bothered to type it all the time, gpg-agent is a handy and safe tool. Your login password is not an acceptable pass-phrase for your secret key!
- Regularly refresh your public keyring from a well-connected keyserver. I detailed this in an earlier post; it s a case of calling gpg --refresh-keys once a week or so. This is the first line of defence against other people s keys being compromised, since without it you ll never know that your messages to them are now vulnerable. A well-connected server, like those in pool.sks-keyservers.net, matters since not all servers synchronise predictably.
- Rotate encrypting sub-keys regularly. This reduces the effect of a compromised key: if you rotate keys annually, a compromise only opens one year of mail. Small comfort, but every little helps. Don t delete the old keys though, just revoke them otherwise you won t be able to open mail from those senders who don t refresh their public keyrings.
- Keep your key offline and make a separated signing sub-key for day-to-day use. There isn t room to go into detail here, but you can export a signing sub-key with a relationship to your primary key material, so if it is compromised you can revoke it without losing all those carefully-collected signatures. The same goes for encrypting sub-keys. Adrian von Bidder has a guide to this, but he warns that it should be taken with a pinch of salt, so this isn t so much a rule as an interesting idea. I have not experimented with this yet.
- Don t place too much store by signing parties. Parties are great for rapidly building a web of trust, but a part of that trust is to do with how the other party checks identities. I don t believe it s possible to establish that with just a few minutes chat and an identity check, so I never make a sig2 or sig3 on a key I met at a party. I m usually happy to do that later when I have an established relationship with the key holder, of course.
- Never upload your own signature to a key server. Apart from the fact that the key holder might not want their key published, you also have no way to prove that the key holder has access to the email address on their UID. It s much better to send the signature to them encrypted, which demonstrates that they the both key and can read mail at the address (the caff program is ideal for this).
- Give personal trust (the trustdb) carefully. Getting that message Good signature from in your mail client is really nice, but not at the expense of giving away trust where it is not deserved. In the same vein as not placing too much trust at signing parties, you should avoid the temptation to over-trust keys in your personal trustdb. Reputation on a mailing list is absolutely no substitute for observing the party taking care over their verifications when doing face-to-face signings.
there was a recurring catchphrase during DebConf10, worded something like
"Debian derivatives are also our users", that appeared quite often
in talks as well as in hallway chats.
DebConf continued until Saturday, but Friday the 6th was my last day as I left New York that evening. I m a bit late in getting this summary written up.
This post concerns Romanian politics, internal affairs and improper direction of public funding for new hideous churches in spite of education, culture, health, technic development and old monuments. Thus I will write this in Romanian. Curious foreigners can try to read the text via 
I did some sound file mangling earlier this week. I ve been using the 


...awesome.
OK, I'm writing this while I'm still in USA, but there are so many
things to say about these weeks that I can't write them in only one
blog post. And, still, this one will be quite long as it will talk
about hacking, running and sightseeing...:)
Let's start about hacking: after all, this is the first reason for
being there in US, isn't it?
I cam to DebConf with a very long TODO list and, for the first time in
seven DebConfs, I'm pretty happy with what I achieved from it:
This fragment of code was extracted from a direct-to-MX PHP spam cannon installed on a customer server. Yes, it contains a real DNS stub resolver written in PHP (which abuses the promiscuous cache of a local large ISP).
FrOSCon was a blast. I had two booths of my own MirBSD and FreeWRT as
well as shares of Debian and Grml. Well, MirBSD was run by Benny and gecko2
because I just didn t have any time for it, despite XTaran s help with the
FreeWRT booth. All I did was the initial setup of both booths, while at the
same time answering about three questions regarding FreeWRT in parallel.
Wow. What a little small, open hardware can do to you. XTaran and I had fun
and we ll do FreeWRT booths again; I managed to flash my two FON2100 devices
( La Fonera the FON2200 can use the same image, says nbd of OpenWrt) and
will fix the port s remaining few bugs I found; XTaran will try to push the
WL-500gPv2 development. The social part was nice as well, although I think
the greek restaurant in the city will not be visited by me again. Anyway,
if you didn t attend FrOSCon, your own fault
Since the BitTorrent tracker used by MirOS is down, here s the link to
Well,
Just echoing what happens in
Sadly, I cannot find this book in English, as it is very well worth a read. But if the topic sounds interesting and you can understand the language, don't hesitate and pick up the book. It gives an interesting insight on the topic, for a group of people (us techies) used to looking at things in a much more human-cognitive-process-oriented way.
[update] I found this nice
This is my third video of me while doing my tattoo, hopefully it won t get removed again due to licensing, because I tried to provide all the necessary copyright. This is its first time showing up on
I d like to have this one on as some kind of personal zeitgeist moment if anything, and I m definitely not making any other versions of this video. I have why I did it , and all the other things written in my previous posts related to this video.
Enjoy
<object height="324" width="400"><param name="movie" value="http://www.youtube.com/v/edKUKCTOpo0&hl=en&fs=1"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed allowfullscreen="true" allowscriptaccess="always" height="344" src="http://www.youtube.com/v/edKUKCTOpo0&hl=en&fs=1" type="application/x-shockwave-flash" width="425"></embed></object>
Related posts: