mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
test_caless: open CA cert in binary mode
When running test_caless suite in py3 we need to open CA cert in binary mode so we can provide bytes later for python-cryptography. https://pagure.io/freeipa/issue/7131 Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
parent
59e136e8ba
commit
5e4f76b043
@ -355,10 +355,10 @@ class CALessBase(IntegrationTest):
|
||||
|
||||
Called from every positive server install test
|
||||
"""
|
||||
with open(self.pem_filename) as f:
|
||||
with open(self.pem_filename, 'rb') as f:
|
||||
expected_cacrt = f.read()
|
||||
logger.debug('Expected /etc/ipa/ca.crt contents:\n%s',
|
||||
expected_cacrt)
|
||||
expected_cacrt.decode('utf-8'))
|
||||
expected_cacrt = x509.load_unknown_x509_certificate(expected_cacrt)
|
||||
logger.debug('Expected binary CA cert:\n%r',
|
||||
expected_cacrt)
|
||||
|
Loading…
Reference in New Issue
Block a user