You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@warble.apache.org by hu...@apache.org on 2018/06/26 23:04:44 UTC

[incubator-warble-node] 03/03: explain what the fingerprint is for

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-warble-node.git

commit 739741f689f4e622a10410dc2601ba24b1226678
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Tue Jun 26 18:04:35 2018 -0500

    explain what the fingerprint is for
---
 node.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/node.py b/node.py
index 87d63e5..7af8acd 100644
--- a/node.py
+++ b/node.py
@@ -138,6 +138,8 @@ if __name__ == "__main__":
                 if payload['encrypted']:
                     apikey = str(plugins.basics.crypto.decrypt(privkey, base64.b64decode(apikey)), 'ascii')
                 print("INFO: Fetched API key %s from server" % apikey)
+                print("INFO: Registered with fingerprint: %s" % plugins.basics.crypto.fingerprint(privkey.public_key()))
+                print("INFO: Please verify that the node request has this fingerprint when verifying the node.")
                 gconf['client']['apikey'] = apikey
                 # Save updated changes to disk
                 yaml.dump(gconf, open(configpath, "w"))
@@ -150,7 +152,7 @@ if __name__ == "__main__":
             sys.exit(-1)
     else:
         apikey = gconf['client'].get('apikey')
-        
+    
     # Now we check if we're eligible to do tests.
     # If --wait is passed, we'll pause and retry until we get our way.
     print("INFO: Checking for node eligibility...")


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@warble.apache.org
For additional commands, e-mail: commits-help@warble.apache.org