include full client certificate chain

Testing this requires quite a bit of effort, so it makes sense to not waste any effort here and only do it for the sans-io implementation.
This commit is contained in:
Maximilian Hils 2020-04-16 14:09:40 +02:00 committed by GitHub
parent bfb8da4b1c
commit 7c72776b2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -297,7 +297,7 @@ def create_client_context(
if cert: if cert:
try: try:
context.use_privatekey_file(cert) context.use_privatekey_file(cert)
context.use_certificate_file(cert) context.use_certificate_chain_file(cert)
except SSL.Error as v: except SSL.Error as v:
raise exceptions.TlsException("SSL client certificate error: %s" % str(v)) raise exceptions.TlsException("SSL client certificate error: %s" % str(v))
return context return context