From f7dbaa6382caac118acd6f5379cc7ec691f39b28 Mon Sep 17 00:00:00 2001 From: Gabe Date: Wed, 8 Jul 2015 08:02:10 -0600 Subject: Fix client ca.crt to match the server's cert https://fedorahosted.org/freeipa/ticket/3809 Reviewed-By: Martin Basti --- ipalib/x509.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipalib/x509.py b/ipalib/x509.py index edd73ebdc..092d451c6 100644 --- a/ipalib/x509.py +++ b/ipalib/x509.py @@ -264,7 +264,7 @@ def make_pem(data): Convert a raw base64-encoded blob into something that looks like a PE file with lines split to 64 characters and proper headers. """ - pemcert = '\n'.join([data[x:x+64] for x in range(0, len(data), 64)]) + pemcert = '\r\n'.join([data[x:x+64] for x in range(0, len(data), 64)]) return '-----BEGIN CERTIFICATE-----\n' + \ pemcert + \ '\n-----END CERTIFICATE-----' -- cgit