Skip to content

Commit

Permalink
Bugfix to ssl.py
Browse files Browse the repository at this point in the history
  • Loading branch information
r3boot committed Jul 15, 2015
1 parent 9b38ca9 commit 85ca712
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkilib/ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def parse_subject(self, raw_subject):
:returns: Dictionary containing the parsed subject or False
:rtype: dict, bool
"""
log.debug('parse_subject')
log.debug(raw_subject)
if not isinstance(raw_subject, str):
log.warning('raw_subject needs to be a string')
return False
Expand Down Expand Up @@ -141,7 +143,6 @@ def parse_certificate(self, crt):

data = {}
for line in utils.run(cmdline).split('\n'):
log.debug(line)
if line.startswith('subject='):
raw_subject = line.strip().replace('subject= ', '')
data['subject'] = self.parse_subject(raw_subject)
Expand Down

0 comments on commit 85ca712

Please sign in to comment.