aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-11-28 17:13:51 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2016-11-30 12:51:06 +0100
commit94531b53509470e01dcbd90275577cb37a794fa8 (patch)
treef6a68fa85c4ed34b6643e7a94e3aae4b4a94afb7
parent9460771a60e28b42cd21ac38710dd9ee7f57cc71 (diff)
downloadbitcoin-94531b53509470e01dcbd90275577cb37a794fa8.tar.xz
torcontrol: Explicitly request RSA1024 private key
When generating a new service key, explicitly request a RSA1024 one. The bitcoin P2P protocol has no support for the longer hidden service names that will come with ed25519 keys, until it does, we depend on the old hidden service type so make this explicit. See #9214. Rebased-From: 7d3b627395582ae7c9d54ebdbc68096d7042162b Github-Pull: #9234
-rw-r--r--src/torcontrol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/torcontrol.cpp b/src/torcontrol.cpp
index 0d6b655675..261da728a6 100644
--- a/src/torcontrol.cpp
+++ b/src/torcontrol.cpp
@@ -469,7 +469,7 @@ void TorController::auth_cb(TorControlConnection& conn, const TorControlReply& r
// Finally - now create the service
if (private_key.empty()) // No private key, generate one
- private_key = "NEW:BEST";
+ private_key = "NEW:RSA1024"; // Explicitly request RSA1024 - see issue #9214
// Request hidden service, redirect port.
// Note that the 'virtual' port doesn't have to be the same as our internal port, but this is just a convenient
// choice. TODO; refactor the shutdown sequence some day.