Create an OpenSSL context SSL connection context factory.
|A PKey object holding the private key.
|An X509 object holding the certificate.
|The SSL protocol to use, one of SSLv23_METHOD, SSLv2_METHOD,
SSLv3_METHOD, TLSv1_METHOD. Defaults to TLSv1_METHOD.
|If True, verify certificates received from the peer and fail the
handshake if verification fails. Otherwise, allow anonymous sessions and
sessions with certificates which fail validation. By default this is
|List of certificate authority certificates to send to the client when
requesting a certificate. Only used if verify is True, and if verify is
True, either this must be specified or caCertsFile must be given. Since
verify is False by default, this is None by default.
|Depth in certificate chain down to which to verify. If unspecified, use
the underlying default (9).
|If True, do not allow anonymous sessions.
|If True, do not re-verify the certificate on session resumption.
|If True, generate a new key whenever ephemeral DH parameters are used to
prevent small subgroup attacks.
|If True, set a session ID on each context. This allows a shortened
handshake to be used when a known client reconnects.
|If True, enable various non-spec protocol fixes for broken SSL
implementations. This should be entirely safe, according to the OpenSSL
documentation, but YMMV. This option is now off by default, because it
causes problems with connections between peers using OpenSSL 0.9.8a.
|If True, enable session ticket extension for session resumption per RFC
5077. Note there is no support for controlling session tickets. This option
is off by default, as some server implementations don't correctly process
incoming empty session ticket extensions in the hello.