Title: #1107: [Backport][ipa-4-6] py3: fix pkcs7 file processing
This PR was opened automatically because PR #1102 was pushed to master and backport to
ipa-4-6 is required.
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/1107/head:pr1107
git checkout pr1107