103-multilevel-keys.txt 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Filename: 103-multilevel-keys.txt
  2. Title: Splitting identity key from regularly used signing key.
  3. Version: $Revision$
  4. Last-Modified: $Date$
  5. Author: Nick Mathewson
  6. Created:
  7. Status: Open
  8. Overview:
  9. This document proposes a change in the way identity keys are used, so that
  10. highly sensitive keys can be password-protected and seldom loaded into RAM.
  11. It presents options; it is not yet a complete proposal.
  12. Proposal:
  13. Replacing a directory authority's identity key in the event of a compromise
  14. would be tremendously annoying. We'd need to tell every client to switch
  15. their configuration, or update to a new version with an uploaded list. So
  16. long as some weren't upgraded, they'd be at risk from whoever had
  17. compromised the key.
  18. With this in mind, it's a shame that our current protocol forces us to
  19. store identity keys unencrypted in RAM. We need some kind of signing key
  20. stored unencrypted, since we need to generate new descriptors/directories
  21. and rotate link and onion keys regularly. (And since, of course, we can't
  22. ask server operators to be on-hand to enter a passphrase every time we
  23. want to rotate keys or sign a descriptor.)
  24. The obvious solution seems to be to have a signing-only key that lives
  25. indefinitely (months or longer) and signs descriptors and link keys, and a
  26. separate identity key that's used to sign the signing key. Tor servers
  27. could run in one of several modes:
  28. 1. Identity key stored encrypted. You need to pick a passphrase when
  29. you enable this mode, and re-enter this passphrase every time you
  30. rotate the signing key.
  31. 1'. Identity key stored separate. You save your identity key to a
  32. floppy, and use the floppy when you need to rotate the signing key.
  33. 2. All keys stored unencrypted. In this case, we might not want to even
  34. *have* a separate signing key. (We'll need to support no-separate-
  35. signing-key mode anyway to keep old servers working.)
  36. 3. All keys stored encrypted. You need to enter a passphrase to start
  37. Tor.
  38. (Of course, we might not want to implement all of these.)
  39. Case 1 is probably most usable and secure, if we assume that people don't
  40. forget their passphrases or lose their floppies. We could mitigate this a
  41. bit by encouraging people to PGP-encrypt their passphrases to themselves,
  42. or keep a cleartext copy of their secret key secret-split into a few
  43. pieces, or something like that.
  44. Migration presents another difficulty, especially with the authorities. If
  45. we use the current set of identity keys as the new identity keys, we're in
  46. the position of having sensitive keys that have been stored on
  47. media-of-dubious-encryption up to now. Also, we need to keep old clients
  48. (who will expect descriptors to be signed by the identity keys they know
  49. and love, and who will not understand signing keys) happy.
  50. I'd enumerate designs here, but I'm hoping that somebody will come up with
  51. a better one, so I'll try not to prejudice them with more ideas yet.
  52. Oh, and of course, we'll want to make sure that the keys are
  53. cross-certified. :)
  54. Ideas? -NM