Title: #3233: [Backport][ipa-4-7] When reading SSH pub key don't assume last
character is newline
This PR was opened automatically because PR #3228 was pushed to master and backport to
ipa-4-7 is required.
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/3233/head:pr3233
git checkout pr3233