Regenerate too small RSA keys

closes #1
This commit is contained in:
Sven Velt 2021-10-19 10:23:13 +02:00
parent 1d08be491a
commit ed24147b3a

View file

@ -60,6 +60,14 @@
loop: '{{ ssh_hardening_hostkeys }}'
notify: Restart SSH
- name: "Renew RSA hostkeys if too short"
openssh_keypair:
path: /etc/ssh/ssh_host_rsa_key
type: rsa
size: 4096
when: '"rsa" in ssh_hardening_hostkeys'
####################
- name: "INCLUDE: Remove small Diffie-Hellman moduli"