Commit b95aa3ea authored by Vincent Pelletier's avatar Vincent Pelletier

http: Use SubjectAlternativeName in server certificate.

So browsers accept to talk to me.
parent 6e915597
......@@ -202,6 +202,11 @@ def updateSSLContext(
# pylint: enable=bad-whitespace
),
critical=True,
).add_extension(
x509.SubjectAlternativeName([
x509.DNSName(hostname.decode('ascii')),
]),
critical=True,
).sign(
private_key=new_key,
algorithm=utils.DEFAULT_DIGEST_CLASS(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment