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 a123cc1 commit 3c87035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkilib/ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def parse_certificate(self, crt):
for line in utils.run(cmdline).split('\n'):
log.debug(line)
if line.startswith('subject='):
raw_subject = line.encode('utf-8').strip()
raw_subject = line.encode('ascii').strip()
raw_subject = line.replace('subject= ', '')
data['subject'] = self.parse_subject(raw_subject)
elif line.startswith('serial='):
Expand Down

0 comments on commit 3c87035

Please sign in to comment.