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 authored and Pavel Vomacka committed 2017-08-29 13:01:31 +02:00
1 parent 0be9a17211
commit cac7357ebd
1 file changed
+1 -1
+1 -1
View File
@@ -560,7 +560,7 @@ def _format_othername(on):
"""Format a python-cryptography OtherName for display."""
return u'{}:{}'.format(
on.type_id.dotted_string,
base64.b64encode(on.value)
base64.b64encode(on.value).decode('ascii')
)