X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mozilla%2Fcertdata2pem.py;h=d6dfa53fb4496692465b44a0f57c1e3b3f1b1fd1;hb=2e3b6330da7abeb2457e5d01c13836c162b4ab7b;hp=76cc3436393bdfc82642b962b708cccb4827bfeb;hpb=56971e3f3dcfb67219d370a06f7ba2b1cc1dcd75;p=ca-certificates.git diff --git a/mozilla/certdata2pem.py b/mozilla/certdata2pem.py index 76cc343..d6dfa53 100644 --- a/mozilla/certdata2pem.py +++ b/mozilla/certdata2pem.py @@ -118,6 +118,7 @@ for obj in objects: .replace('(', '=')\ .replace(')', '=')\ .replace(',', '_') + '.crt' + fname = fname.decode('string_escape') f = open(fname, 'w') f.write("-----BEGIN CERTIFICATE-----\n") f.write("\n".join(textwrap.wrap(base64.b64encode(obj['CKA_VALUE']), 64)))