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:
Fraser Tweedale 2017-08-25 18:21:49 +10:00 committed by Pavel Vomacka
parent 0be9a17211
commit cac7357ebd

View File

@ -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')
) )