You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pyOpenSSL is not installed by the driver and must be installed separately.
89
+
81
90
SSL Configuration Examples
82
91
^^^^^^^^^^^^^^^^^^^^^^^^^^
83
92
Here, we'll describe the server and driver configuration necessary to set up SSL to meet various goals, such as the client verifying the server and the server verifying the client. We'll also include Python code demonstrating how to use servers and drivers configured in these ways.
@@ -239,6 +248,28 @@ The following driver code specifies that the connection should use two-way verif
239
248
The driver uses ``SSLContext`` directly to give you many other options in configuring SSL. Consider reading the `Python SSL documentation <https://docs.python.org/library/ssl.html#ssl.SSLContext>`_
240
249
for more details about ``SSLContext`` configuration.
241
250
251
+
**Server verifies client and client verifies server using Twisted and pyOpenSSL**
252
+
253
+
.. code-block:: python
254
+
255
+
from OpenSSL import SSL, crypto
256
+
from cassandra.cluster import Cluster
257
+
from cassandra.io.twistedreactor import TwistedConnection
0 commit comments