Fix the x5c header in our registry jwts.

This commit is contained in:
Jake Moshenko 2016-05-23 15:05:54 -04:00
parent d6b73a41de
commit 4266ae7ce5

View file

@ -67,7 +67,8 @@ def build_context_and_subject(user, token, oauthtoken):
@lru_cache(maxsize=1)
def _load_certificate_bytes(certificate_file_path):
with open(certificate_file_path) as cert_file:
return ''.join(cert_file.readlines()[1:-1]).rstrip('\n')
cert_lines = cert_file.readlines()[1:-1]
return ''.join([cert_line.rstrip('\n') for cert_line in cert_lines])
@lru_cache(maxsize=1)