Entrust: add organization handling-linting

This commit is contained in:
sirferl 2020-11-12 14:09:24 +01:00
parent d4d51c702a
commit e1926f2f3c
1 changed files with 3 additions and 2 deletions

View File

@ -105,6 +105,7 @@ def get_client_id(my_response, organization):
else:
raise Exception(f"Error on Organization - Use on of the List: {d['organizations']}")
def handle_response(my_response):
"""
Helper function for parsing responses from the Entrust API.
@ -221,7 +222,7 @@ class EntrustIssuerPlugin(IssuerPlugin):
external_id = response_dict['trackingId']
cert = response_dict['endEntityCert']
if len(response_dict['chainCerts']) < 2:
# certificate signed by CA directly, no ICA included ini the chain
# certificate signed by CA directly, no ICA included in the chain
chain = None
else:
chain = response_dict['chainCerts'][1]