Martin v. Löwis added the comment: I'd add a sentence to this paragraph
"""If a client certificate is needed for the connection, it can be added with context.load_cert_chain(path_to_certificate, path_to_private_key) """ Then, in all places where a context and cert/key parameters are allowed (e.g. SMTP_SSL and starttls()), I'd remove the sentence saying that context is an alternative way to provide a private key, and say instead """See <link to "best defaults"> for configuring parameters of the TLS connection, such as validation of the server certificate, using the context parameter.""" ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20913> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com