Ticket #2061 defect closed fixed
_sslverify.py: Wrong use of param caCerts in OpenSSLCertificateOptions
Description
Wrong use of param caCerts in the constructor of class OpenSSLCertificateOptions in file _sslverify.py.
Two complaints, mainly referring to the documentation of caCers.
a) The parameter caCertsFile does not exist.
b) These certificates are NOT SENT to the client, but used server-side to check correctness when receiving a client certificate.
The documented functionality would actually be provided when calling the pyOpenSSL exposed method ctx.load_client_ca(pemfile), which implements the code fragment from the following quote:
Quoting from the openssl documentation (openssl-0.9.8c/CHANGES.SSLeay)
If you want to use client certificates then you have to add in a bit of extra stuff in that a SSLv3 server sends a list of those CAs that it will accept certificates from ... so you have to provide a list to SSLeay otherwise certain browsers will not send client certs.
SSL_CTX_set_client_CA_list(ctx,SSL_load_client_CA_file(s_cert_file));

