Fix client ca.crt to match the server's cert

https://fedorahosted.org/freeipa/ticket/3809

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Gabe 2015-07-08 08:02:10 -06:00 committed by Martin Basti
parent 7d28230405
commit f7dbaa6382

View File

@ -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-----'