--- mozilla/certdata2pem.py	2016-01-04 18:31:05.000000000 +0100
+++ mozilla/certdata2pem.py	2016-01-05 20:05:53.595360495 +0100
@@ -63,7 +63,7 @@
             else:
                 value += line
             continue
-        obj[field] = value
+        obj[field] = bytes(value)
         in_multiline = False
         continue
     if line.startswith('CKA_CLASS'):
