Commit 368b9c50 authored by Sean Watson's avatar Sean Watson Committed by Joshua Tauberer

add DSA and ED25519 SSHFP records if those keys are present (#1078)

parent 3830facf
...@@ -11,6 +11,7 @@ In Development ...@@ -11,6 +11,7 @@ In Development
* Allow larger messages to be checked by SpamAssassin. * Allow larger messages to be checked by SpamAssassin.
* Made nightly re-provisioning of TLS certificates less noisy. * Made nightly re-provisioning of TLS certificates less noisy.
* Fixed bugs in rsync backup method. * Fixed bugs in rsync backup method.
* Added support for DSA and ED25519 SSHFP records.
v0.21c (February 1, 2017) v0.21c (February 1, 2017)
------------------------- -------------------------
......
...@@ -342,6 +342,7 @@ def build_sshfp_records(): ...@@ -342,6 +342,7 @@ def build_sshfp_records():
"ssh-rsa": 1, "ssh-rsa": 1,
"ssh-dss": 2, "ssh-dss": 2,
"ecdsa-sha2-nistp256": 3, "ecdsa-sha2-nistp256": 3,
"ssh-ed25519": 4,
} }
# Get our local fingerprints by running ssh-keyscan. The output looks # Get our local fingerprints by running ssh-keyscan. The output looks
...@@ -359,7 +360,7 @@ def build_sshfp_records(): ...@@ -359,7 +360,7 @@ def build_sshfp_records():
ports = ports + [s[1]] ports = ports + [s[1]]
# the keys are the same at each port, so we only need to get # the keys are the same at each port, so we only need to get
# them at the first port found (may not be port 22) # them at the first port found (may not be port 22)
keys = shell("check_output", ["ssh-keyscan", "-p", ports[0], "localhost"]) keys = shell("check_output", ["ssh-keyscan", "-t", "rsa,dsa,ecdsa,ed25519", "-p", ports[0], "localhost"])
for key in sorted(keys.split("\n")): for key in sorted(keys.split("\n")):
if key.strip() == "" or key[0] == "#": continue if key.strip() == "" or key[0] == "#": continue
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment