X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=blobdiff_plain;f=sfa%2Ftrust%2Fcertificate.py;h=199504dc93a2731cdc5405f4f0d698a4da46f0d9;hp=9552d1ff9834676077666555e36297bfeb58adcb;hb=b520a784c5fe4d70f1840563b4493ff285a89985;hpb=eabad1f49b519d0a7b73a2644c14a94e87545dda diff --git a/sfa/trust/certificate.py b/sfa/trust/certificate.py index 9552d1ff..199504dc 100644 --- a/sfa/trust/certificate.py +++ b/sfa/trust/certificate.py @@ -714,7 +714,9 @@ class Certificate: if field in self.data: raise Exception("Cannot set {} more than once".format(field)) self.data[field] = string - self.add_extension(field, 0, string) + # call str() because we've seen unicode there + # and the underlying C code doesn't like it + self.add_extension(field, 0, str(string)) ## # Return the data string that was previously set with set_data