From 71ab27125f63a30bc98045871298134ab8617bde Mon Sep 17 00:00:00 2001 From: Matteo Piccina Date: Fri, 9 Dec 2016 12:59:26 +0100 Subject: [PATCH] Edit in regex for team id --- isign/signer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isign/signer.py b/isign/signer.py index 5a8a8059..4594ae7e 100644 --- a/isign/signer.py +++ b/isign/signer.py @@ -150,7 +150,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: