mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 08:41:55 -06:00
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:
parent
7d28230405
commit
f7dbaa6382
@ -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-----'
|
||||
|
Loading…
Reference in New Issue
Block a user