add support for ssl cert chains to support client certs

This commit is contained in:
Tim Newsham
2015-07-17 07:58:07 -10:00
parent ae7f36e372
commit 61cadf26ea

View File

@@ -132,6 +132,9 @@ def _wrap_sni_socket(sock, sslopt, hostname, check_hostname):
context.check_hostname = check_hostname
if 'ciphers' in sslopt:
context.set_ciphers(sslopt['ciphers'])
if 'cert_chain' in sslopt :
certfile,keyfile,password = sslopt['cert_chain']
context.load_cert_chain(certfile,keyfile,password)
return context.wrap_socket(
sock,