Skip to content
This repository has been archived by the owner on Jan 17, 2021. It is now read-only.

Commit

Permalink
fix cert bug for chrome 58, see #121
Browse files Browse the repository at this point in the history
  • Loading branch information
xyuanmu committed May 1, 2017
1 parent d663d51 commit b011217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cert_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def _get_cert(commonname, sans=()):
sans = ['*'+commonname] + [s for s in sans if s != '*'+commonname]
else:
sans = [commonname] + [s for s in sans if s != commonname]
#cert.add_extensions([OpenSSL.crypto.X509Extension(b'subjectAltName', True, ', '.join('DNS: %s' % x for x in sans))])
cert.add_extensions([OpenSSL.crypto.X509Extension(b'subjectAltName', True, ', '.join('DNS: %s' % x for x in sans))])
cert.sign(key, CertUtil.ca_digest)
certfile = os.path.join(CertUtil.ca_certdir, commonname + '.crt')
with open(certfile, 'wb') as fp:
Expand Down

0 comments on commit b011217

Please sign in to comment.