Hello, Fix for https://fedorahosted.org/freeipa/ticket/3809
Thanks, Gabe
From b6a852f82e9335ac04fb5d9b96f31013fb2a3bdb Mon Sep 17 00:00:00 2001 From: Gabe <redhatri...@gmail.com> Date: Tue, 26 May 2015 08:06:12 -0600 Subject: [PATCH] Fix client ca.crt to match the server's cert https://fedorahosted.org/freeipa/ticket/3809 --- ipalib/x509.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipalib/x509.py b/ipalib/x509.py index a87dbf4130c60b1b1daf8bbb2ffb81c208f2529c..5f94478194939ee2c5ac01dbeaae1edb9f4d14a0 100644 --- a/ipalib/x509.py +++ b/ipalib/x509.py @@ -264,10 +264,10 @@ 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-----' + '\n-----END CERTIFICATE-----\n' def normalize_certificate(rawcert): """ -- 1.8.3.1
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code