Ticket was cloned from Red Hat Bugzilla (product Fedora): Bug 1599027
Description of problem: freeipa-client-common-4.6.90.pre2-3.fc28.noarch freeipa-common-4.6.90.pre2-3.fc28.noarch freeipa-client-4.6.90.pre2-3.fc28.x86_64 310225 073189 $ ipa ca-show vpn --certificate-out=/tmp/vpn ipa: ERROR: non-public: TypeError: initializer for ctype 'char[]' must be a bytes or list or tuple, not str Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/ipalib/backend.py", line 141, in execute return self.Command[_name](*args, **options) File "/usr/lib/python3.6/site-packages/ipalib/frontend.py", line 450, in __call__ return self.__do_call(*args, **options) File "/usr/lib/python3.6/site-packages/ipalib/frontend.py", line 478, in __do_call ret = self.run(*args, **options) File "/usr/lib/python3.6/site-packages/ipalib/frontend.py", line 801, in run return self.forward(*args, **options) File "/usr/lib/python3.6/site-packages/ipaclient/plugins/ca.py", line 42, in forward result['result']['certificate']) File "/usr/lib/python3.6/site-packages/ipalib/x509.py", line 406, in load_der_x509_certificate crypto_x509.load_der_x509_certificate(data, backend=default_backend()) File "/usr/lib64/python3.6/site-packages/cryptography/x509/base.py", line 47, in load_der_x509_certificate return backend.load_der_x509_certificate(data) File "/usr/lib64/python3.6/site-packages/cryptography/hazmat/backends/openssl /backend.py", line 1144, in load_der_x509_certificate mem_bio = self._bytes_to_bio(data) File "/usr/lib64/python3.6/site-packages/cryptography/hazmat/backends/openssl /backend.py", line 436, in _bytes_to_bio data_char_p = self._ffi.new("char[]", data) TypeError: initializer for ctype 'char[]' must be a bytes or list or tuple, not str ipa: ERROR: an internal error has occurred
Metadata Update from @frenaud: - Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1599027
Metadata Update from @frenaud: - Issue set to the milestone: FreeIPA 4.7
Metadata Update from @rcritten: - Issue set to the milestone: FreeIPA 4.7.1 (was: FreeIPA 4.7)
FreeIPA 4.7 has been released, moving to FreeIPA 4.7.1 milestone
Metadata Update from @abiagion: - Issue assigned to abiagion
Metadata Update from @abiagion: - Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/2327
master:
ipa-4-7:
Metadata Update from @abiagion: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
ipa-4-6:
Log in to comment on this ticket.