Strip trailing whitespace from submitted CSR

Change-Id: I5d42a4fbef420e1b52f95eaf0bc4b756d65f1228
Closes-Bug: #1876155
This commit is contained in:
Martin Kalcok 2020-09-25 15:56:19 +02:00
parent 59a4e926bb
commit c996ce5462
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ def upload_signed_csr(pem, allowed_domains, allow_subdomains=True,
# (hvac module doesn't expose a method for this, hence the _post call)
client._post(
'v1/{}/intermediate/set-signed'.format(CHARM_PKI_MP),
json={'certificate': pem})
json={'certificate': pem.rstrip()})
# Generated certificates can have the CRL location and the location of the
# issuing certificate encoded.
addr = vault.get_access_address()