Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
368b9c50
Commit
368b9c50
authored
Mar 01, 2017
by
Sean Watson
Committed by
Joshua Tauberer
Mar 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add DSA and ED25519 SSHFP records if those keys are present (#1078)
parent
3830facf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
CHANGELOG.md
CHANGELOG.md
+1
-0
dns_update.py
management/dns_update.py
+2
-1
No files found.
CHANGELOG.md
View file @
368b9c50
...
...
@@ -11,6 +11,7 @@ In Development
*
Allow larger messages to be checked by SpamAssassin.
*
Made nightly re-provisioning of TLS certificates less noisy.
*
Fixed bugs in rsync backup method.
*
Added support for DSA and ED25519 SSHFP records.
v0.21c (February 1, 2017)
-------------------------
...
...
management/dns_update.py
View file @
368b9c50
...
...
@@ -342,6 +342,7 @@ def build_sshfp_records():
"ssh-rsa"
:
1
,
"ssh-dss"
:
2
,
"ecdsa-sha2-nistp256"
:
3
,
"ssh-ed25519"
:
4
,
}
# Get our local fingerprints by running ssh-keyscan. The output looks
...
...
@@ -359,7 +360,7 @@ def build_sshfp_records():
ports
=
ports
+
[
s
[
1
]]
# 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)
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
"
)):
if
key
.
strip
()
==
""
or
key
[
0
]
==
"#"
:
continue
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment