mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Improve log messages related to identity key
Improve the messages logged when Tor wants or needs to load the master ed25519 identity key so the user is explicitly informed when further action is required or not. Fixes ticket #20650.
This commit is contained in:
parent
4614f8e681
commit
215cc0d527
@ -742,8 +742,12 @@ load_ed_keys(const or_options_t *options, time_t now)
|
||||
|
||||
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%s the permanent master identity key.",
|
||||
"medium-term signing key, because %s. To do that, I "
|
||||
"need to load the permanent master identity key. "
|
||||
"If the master identity key was not moved or encrypted "
|
||||
"with a passphrase, this will be done automatically and "
|
||||
"no further action is required. Otherwise, provide the "
|
||||
"necessary data using 'tor --keygen' to do it manually.",
|
||||
(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",
|
||||
@ -751,15 +755,19 @@ load_ed_keys(const or_options_t *options, time_t now)
|
||||
} else if (want_new_signing_key && !offline_master) {
|
||||
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.");
|
||||
"going to expire soon. To do that, I'm going to have to "
|
||||
"try to load the permanent master identity key. "
|
||||
"If the master identity key was not moved or encrypted "
|
||||
"with a passphrase, this will be done automatically and "
|
||||
"no further action is required. Otherwise, provide the "
|
||||
"necessary data using 'tor --keygen' to do it manually.");
|
||||
} 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. But OfflineMasterKey is set, so I "
|
||||
"won't try to load a permanent master identity key is set. "
|
||||
"You will need to use 'tor --keygen' make a new signing key "
|
||||
"and certificate.");
|
||||
"won't try to load a permanent master identity key. You "
|
||||
"will need to use 'tor --keygen' to make a new signing "
|
||||
"key and certificate.");
|
||||
}
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user