mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
Generates RSA pairs for dhtnode instead of EC cert
* dhtnode was generating twice an EC cert which rendered encryption impossible since opendht lib is expecting an RSA public key to encrypt the data for the destination. * fix savoirfairelinux/opendht#235
This commit is contained in:
1 parent
c03ba57895
commit
962249ec75
1 file changed
+1
-1
+1
-1
@@ -484,7 +484,7 @@ main(int argc, char **argv)
|
||||
dht::crypto::Identity crt {};
|
||||
if (params.generate_identity) {
|
||||
auto ca_tmp = dht::crypto::generateEcIdentity("DHT Node CA");
|
||||
crt = dht::crypto::generateEcIdentity("DHT Node", ca_tmp);
|
||||
crt = dht::crypto::generateIdentity("DHT Node", ca_tmp);
|
||||
}
|
||||
|
||||
dht::DhtRunner::Config config;
|
||||
|
||||
Reference in new issue
Block a user