URL: https://github.com/freeipa/freeipa/pull/1004
Author: frasertweedale
 Title: #1004: cert: fix application of 'str' to bytes when formatting otherName
Action: opened

PR body:
"""
Part of: https://pagure.io/freeipa/issue/4985
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/1004/head:pr1004
git checkout pr1004
From c9eba18e06a6a2be22e258bf71e78edd56af6fec Mon Sep 17 00:00:00 2001
From: Fraser Tweedale <ftwee...@redhat.com>
Date: Fri, 25 Aug 2017 18:21:49 +1000
Subject: [PATCH] cert: fix application of 'str' to bytes when formatting
 otherName

Part of: https://pagure.io/freeipa/issue/4985
---
 ipaserver/plugins/cert.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipaserver/plugins/cert.py b/ipaserver/plugins/cert.py
index ad8bea669e..41cb6758d4 100644
--- a/ipaserver/plugins/cert.py
+++ b/ipaserver/plugins/cert.py
@@ -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')
     )
 
 
_______________________________________________
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org

Reply via email to