Title: #1888: Load certificate files as binary data
In Python 3, cryptography requires certificate data to be binary. Even
PEM encoded files are treated as binary content.
certmap-match and cert-find were loading certificates as text files. A
new BinaryFile type loads files as binary content.
Signed-off-by: Christian Heimes <cheimes(a)redhat.com>
Reviewed-By: Stanislav Laznicka <slaznick(a)redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud(a)redhat.com>
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/1888/head:pr1888
git checkout pr1888