diff --git a/isign/signer.py b/isign/signer.py index 3379cbc7..c32d4d4d 100644 --- a/isign/signer.py +++ b/isign/signer.py @@ -157,7 +157,7 @@ def _get_team_id(self): '-noout' ] certificate_info = openssl_command(cmd) - subject_with_ou_match = re.compile(r'\s+Subject:.*OU=(\w+)') + subject_with_ou_match = re.compile(r'\s+Subject:.*OU\s?=\s?(\w+)') for line in certificate_info.splitlines(): match = subject_with_ou_match.match(line) if match is not None: