mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 17:24:12 +00:00
Merge pull request #380 from mpraeger/feature/host_certificates
add Support for OpenSSH HostCertificate config option
This commit is contained in:
commit
66feb7c2ad
2 changed files with 8 additions and 0 deletions
|
@ -36,6 +36,9 @@ ssh_listen_to: ['0.0.0.0'] # sshd
|
|||
# Host keys to look for when starting sshd.
|
||||
ssh_host_key_files: [] # sshd
|
||||
|
||||
# Host certificates to look for when starting sshd.
|
||||
ssh_host_certificates: [] # sshd
|
||||
|
||||
# Specifies the host key algorithms that the server offers
|
||||
ssh_host_key_algorithms: [] # sshd
|
||||
|
||||
|
|
|
@ -38,6 +38,11 @@ ListenAddress {{ address }}
|
|||
HostKey {{ key }}
|
||||
{% endfor %}
|
||||
|
||||
# HostCertificates are listed here.
|
||||
{% for certificate in ssh_host_certificates -%}
|
||||
HostCertificate {{ certificate }}
|
||||
{% endfor %}
|
||||
|
||||
# Host key algorithms that the server offers.
|
||||
{% if sshd_version is version('5.8', '>=') %}
|
||||
{{ "HostKeyAlgorithms " ~ ssh_host_key_algorithms|join(',') if ssh_host_key_algorithms else "HostKeyAlgorithms"|comment }}
|
||||
|
|
Loading…
Reference in a new issue