c-h: Separate certificates with lineseparator in bundles

Cherry-pick specific fix for charm-helpers already synced
into master.

Change-Id: Ib098462c3ef38022a5a215f4cfe49ccc0a2993ab
Closes-Bug: #1813982
This commit is contained in:
Frode Nordahl 2019-01-31 09:23:44 +01:00
parent e50f3ed210
commit d76a3f4a01
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ def install_certs(ssl_dir, certs, chain=None):
if chain:
# Append chain file so that clients that trust the root CA will
# trust certs signed by an intermediate in the chain
cert_data = cert_data + chain
cert_data = cert_data + os.linesep + chain
write_file(
path=os.path.join(ssl_dir, cert_filename),
content=cert_data, perms=0o640)