diff options
author | Guido van Rossum <guido@python.org> | 2013-12-06 12:59:35 -0800 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2013-12-06 12:59:35 -0800 |
commit | aa5f43ffaaf94b9c18f25a69051f22507bdaaa7d (patch) | |
tree | 2457d5a9369b2ac586465216db437c992fd173c3 /examples | |
parent | aa779f4695780b0e0fc9bd1d61529a5737b0313e (diff) | |
download | trollius-aa5f43ffaaf94b9c18f25a69051f22507bdaaa7d.tar.gz |
SSL hostname checking changes from CPython repo by Christian Heimes.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/sink.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/sink.py b/examples/sink.py index d4866e2..d362cbb 100644 --- a/examples/sink.py +++ b/examples/sink.py @@ -66,8 +66,8 @@ def start(loop, host, port): sslctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23) sslctx.options |= ssl.OP_NO_SSLv2 sslctx.load_cert_chain( - certfile=os.path.join(here, 'sample.crt'), - keyfile=os.path.join(here, 'sample.key')) + certfile=os.path.join(here, 'ssl_cert.pem'), + keyfile=os.path.join(here, 'ssl_key.pem')) server = yield from loop.create_server(Service, host, port, ssl=sslctx) dprint('serving TLS' if sslctx else 'serving', |