From fdb6f5552d43d7ab02320ccd7e6d58750e33c4c4 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Wed, 8 Oct 2014 20:46:30 +0200 Subject: CertStore: add support for cert chains --- netlib/tcp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'netlib/tcp.py') diff --git a/netlib/tcp.py b/netlib/tcp.py index aca4bd1b..8e87bec8 100644 --- a/netlib/tcp.py +++ b/netlib/tcp.py @@ -345,7 +345,7 @@ class BaseHandler(_Connection): def _create_ssl_context(self, cert, key, method=SSLv23_METHOD, options=None, handle_sni=None, request_client_cert=None, cipher_list=None, - dhparams=None, ca_file=None): + dhparams=None, chain_file=None): """ cert: A certutils.SSLCert object. @@ -377,8 +377,8 @@ class BaseHandler(_Connection): ctx = SSL.Context(method) if not options is None: ctx.set_options(options) - if ca_file: - ctx.load_verify_locations(ca_file) + if chain_file: + ctx.load_verify_locations(chain_file) if cipher_list: try: ctx.set_cipher_list(cipher_list) -- cgit v1.2.3