mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
cert: fix application of 'str' to bytes when formatting otherName
Part of: https://pagure.io/freeipa/issue/4985 Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
parent
0be9a17211
commit
cac7357ebd
@ -560,7 +560,7 @@ def _format_othername(on):
|
|||||||
"""Format a python-cryptography OtherName for display."""
|
"""Format a python-cryptography OtherName for display."""
|
||||||
return u'{}:{}'.format(
|
return u'{}:{}'.format(
|
||||||
on.type_id.dotted_string,
|
on.type_id.dotted_string,
|
||||||
base64.b64encode(on.value)
|
base64.b64encode(on.value).decode('ascii')
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user