From aa5f43ffaaf94b9c18f25a69051f22507bdaaa7d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 6 Dec 2013 12:59:35 -0800 Subject: SSL hostname checking changes from CPython repo by Christian Heimes. --- examples/sink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') 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', -- cgit v1.2.1