summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabe <redhatrises@gmail.com>2015-07-08 08:02:10 -0600
committerMartin Basti <mbasti@redhat.com>2015-07-27 18:04:53 +0200
commitf7dbaa6382caac118acd6f5379cc7ec691f39b28 (patch)
tree916e1efbdcee6784853e786a3548c1c977a39d15
parent7d2823040593a4207cfce834a5c6840464fab64b (diff)
downloadfreeipa-f7dbaa6382caac118acd6f5379cc7ec691f39b28.tar.gz
freeipa-f7dbaa6382caac118acd6f5379cc7ec691f39b28.tar.xz
freeipa-f7dbaa6382caac118acd6f5379cc7ec691f39b28.zip
Fix client ca.crt to match the server's cert
https://fedorahosted.org/freeipa/ticket/3809 Reviewed-By: Martin Basti <mbasti@redhat.com>
-rw-r--r--ipalib/x509.py2
1 files changed, 1 insertions, 1 deletions
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-----'