[tor-commits] [tor/master] Explain better why we are about to load the master key.

nickm at torproject.org nickm at torproject.org
Wed Aug 19 17:37:40 UTC 2015


commit c88a8a7ca38e3dd43dca913fbe22aee819420c4a
Author: Nick Mathewson <nickm at torproject.org>
Date:   Mon Aug 10 10:35:47 2015 -0400

    Explain better why we are about to load the master key.
---
 src/or/routerkeys.c |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/or/routerkeys.c b/src/or/routerkeys.c
index 2b967dd..025fa6f 100644
--- a/src/or/routerkeys.c
+++ b/src/or/routerkeys.c
@@ -660,6 +660,20 @@ load_ed_keys(const or_options_t *options, time_t now)
     need_new_signing_key ||
     EXPIRES_SOON(check_signing_cert, options->TestingSigningKeySlop);
 
+  if (need_new_signing_key) {
+    log_notice(LD_OR, "It looks like I need to generate and sign a new "
+               "medium-term signing key, because %s. To do that, I need to "
+               "load (or create) the permanent master identity key.",
+            (NULL == use_signing) ? "I don't have one" :
+            EXPIRES_SOON(check_signing_cert, 0) ? "the one I have is expired" :
+            "you asked me to make one with --keygen");
+  } else if (want_new_signing_key) {
+    log_notice(LD_OR, "It looks like I should try to generate and sign a "
+               "new medium-term signing key, because the one I have is "
+               "going to expire soon. To do that, I'm going to have to try to "
+               "load the permanent master identity key.");
+  }
+
   {
     uint32_t flags =
       (INIT_ED_KEY_SPLIT|





More information about the tor-commits mailing list