So this is a weird one that apparently existed for quite some time now. I've only noticed after the latest Upgrade to Foreman 3.9 and Katello 4.11 that the 'freeipa_register' snippet only creates RSA keys for sshd by default. However, I prefer to have all three key types generated:
- ed25519
- ecdsa
- rsa
However, in order to accomplish that, we'll have to modify the 'freeipa_register' privisioning snippet and add the other keys:
Before:
<% elsif os_major > 7 %>
/usr/libexec/openssh/sshd-keygen rsa
<% end -%>
After:
<% elsif os_major > 7 %>
/usr/libexec/openssh/sshd-keygen ed25519
/usr/libexec/openssh/sshd-keygen ecdsa
/usr/libexec/openssh/sshd-keygen rsa
<% end -%>
Now the hosts automatically installed by katello will have all three key-types present in the ipa configuration. There's another article that might be of use for regenerating sshfp records for hosts: FreeIPA - Regenerate sshfp records.
Feel free to comment and / or suggest a topic.
Comments
Post a Comment