c-h: Separate certificates with lineseparator in bundles
Cherry-pick specific fix for charm-helpers already synced into master. Change-Id: Ib0014fcc1a3a6a6820ee46d862a3b88c85388d1c Closes-Bug: #1813982
This commit is contained in:
parent
af098b86c9
commit
c25012e623
@ -195,7 +195,7 @@ def install_certs(ssl_dir, certs, chain=None):
|
|||||||
if chain:
|
if chain:
|
||||||
# Append chain file so that clients that trust the root CA will
|
# Append chain file so that clients that trust the root CA will
|
||||||
# trust certs signed by an intermediate in the chain
|
# trust certs signed by an intermediate in the chain
|
||||||
cert_data = cert_data + chain
|
cert_data = cert_data + os.linesep + chain
|
||||||
write_file(
|
write_file(
|
||||||
path=os.path.join(ssl_dir, cert_filename),
|
path=os.path.join(ssl_dir, cert_filename),
|
||||||
content=cert_data, perms=0o640)
|
content=cert_data, perms=0o640)
|
||||||
|
Loading…
Reference in New Issue
Block a user