]> git.donarmstrong.com Git - ca-certificates.git/blobdiff - mozilla/certdata2pem.py
Import Debian version 20110421
[ca-certificates.git] / mozilla / certdata2pem.py
index d40b659d5cc059fa4af0b2dd0f7f682784f7f84b..d6dfa53fb4496692465b44a0f57c1e3b3f1b1fd1 100644 (file)
@@ -17,7 +17,8 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,
+# USA.
 
 import base64
 import os.path
@@ -117,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)))