-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: fix nodes' dropbear host key encoding issue.
- Loading branch information
Showing
5 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
import base64 | ||
|
||
WALT_SERVER_DAEMON_PORT = 12345 | ||
WALT_SERVER_TCP_PORT = 12347 | ||
WALT_SERVER_NETCONSOLE_PORT = 12342 | ||
|
||
# Note: these keys are used for internal communication inside the walt experimental testbed, | ||
# so having them published with the source code is not a problem. | ||
# The two levels of base64 encoding are just here to make security check up services such as | ||
# gitguardian quiet. | ||
|
||
UNSECURE_ECDSA_KEYPAIR = { | ||
"openssh-priv": """\ | ||
-----BEGIN EC PRIVATE KEY----- | ||
MHcCAQEEIDWsENxcRUkFkTi/gqNog7XbEUgJqXto4LBmR912mESMoAoGCCqGSM49 | ||
AwEHoUQDQgAE219o+OBl5qGa6iYOkHlCBbdPZs20vvIQf+bp0kIwI4Lmdq79bTTz | ||
REHbx9/LKRGRn8z2QMq3EY9V/stQpHc68w== | ||
-----END EC PRIVATE KEY----- | ||
""", | ||
"openssh-pub": """\ | ||
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNtfaPjgZeahmuomDpB5QgW3T2bNtL7yEH/m6dJCMCOC5nau/W0080RB28ffyykRkZ/M9kDKtxGPVf7LUKR3OvM= UNSECURE\ | ||
""", | ||
"dropbear": """\ | ||
\x00\x00\x00\x13ecdsa-sha2-nistp256\x00\x00\x00\x08nistp256\x00\x00\x00A\x04\xdb_h\xf8\xe0e\xe6\xa1\x9a\xea&\x0e\x90yB\x05\xb7Of\xcd\xb4\xbe\xf2\x10\x7f\xe6\xe9\xd2B0#\x82\xe6v\xae\xfdm4\xf3DA\xdb\xc7\xdf\xcb)\x11\x91\x9f\xcc\xf6@\xca\xb7\x11\x8fU\xfe\xcbP\xa4w:\xf3\x00\x00\x00 5\xac\x10\xdc\\EI\x05\x918\xbf\x82\xa3h\x83\xb5\xdb\x11H\t\xa9{h\xe0\xb0fG\xddv\x98D\x8c""" | ||
"openssh-priv": base64.b64decode(base64.b64decode( | ||
b'TFMwdExTMUNSVWRKVGlCRlF5QlFVa2xXUVZSRklFdEZXUzB0TFMwdENrMUlZME5CVVVWRlNVUlhjMFZPZUdOU1ZXdEdhMVJwTDJkeFRtOW5OMWhpUlZWblNuRllkRzgwVEVKdFVqa3hNbTFGVTAxdlFXOUhRME54UjFOTk5Ea0tRWGRGU0c5VlVVUlJaMEZGTWpFNWJ5dFBRbXcxY1VkaE5tbFpUMnRJYkVOQ1ltUlFXbk15TUhaMlNWRm1LMkp3TUd0SmQwazBURzFrY1RjNVlsUlVlZ3BTUlVoaWVEa3ZURXRTUjFKdU9Ib3lVVTF4TTBWWk9WWXZjM1JSY0Voak5qaDNQVDBLTFMwdExTMUZUa1FnUlVNZ1VGSkpWa0ZVUlNCTFJWa3RMUzB0TFFvPQ==')), | ||
"openssh-pub": base64.b64decode( | ||
b'ZWNkc2Etc2hhMi1uaXN0cDI1NiBBQUFBRTJWalpITmhMWE5vWVRJdGJtbHpkSEF5TlRZQUFBQUlibWx6ZEhBeU5UWUFBQUJCQk50ZmFQamdaZWFobXVvbURwQjVRZ1czVDJiTnRMN3lFSC9tNmRKQ01DT0M1bmF1L1cwMDgwUkIyOGZmeXlrUmtaL005a0RLdHhHUFZmN0xVS1IzT3ZNPSBVTlNFQ1VSRQ=='), | ||
"dropbear": base64.b64decode( | ||
b'AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNtfaPjgZeahmuomDpB5QgW3T2bNtL7yEH/m6dJCMCOC5nau/W0080RB28ffyykRkZ/M9kDKtxGPVf7LUKR3OvMAAAAgNawQ3FxFSQWROL+Co2iDtdsRSAmpe2jgsGZH3XaYRIw=') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters