@@ -100,30 +100,26 @@ URL:
100100
101101 >>> connection = client.connect(' https://localhost:4200/' , ... )
102102
103- .. CAUTION ::
104-
105- By default, server certificates are *not * verified.
106-
107103.. SEEALSO ::
108104
109105 The CrateDB reference has a section on `setting up SSL `_. This will be
110- useful background reading for the following two subsections.
106+ a useful background reading for the following two subsections.
111107
112108Server verification
113109...................
114110
115- You can enable server SSL certificate verification by passing in the
116- ``verify_ssl_cert `` keyword argument and setting it to ``True ``.
111+ Server certificates are verified by default. In order to connect to a
112+ SSL-enabled host using self-signed certificates, you will need to provide the
113+ CA certificate file used to sign the server SSL certificate::
117114
118- However, in order to do so, you also need to specify the certificate file of
119- the *Certificate Authority * (CA) used to sign the server SSL certificate. You
120- can do this using the ``ca_cert `` keyword argument.
115+ >>> connection = client.connect(..., ca_cert="<CA_CERT_FILE>")
121116
122- Here's how you might do that::
117+ Here, replace `` <CA_CERT_FILE> `` with the path to the CA certificate file.
123118
124- >>> connection = client.connect(..., ca_cert="<CA_CERT_FILE>", verify_ssl_cert=True)
119+ You can disable server SSL certificate verification by using the
120+ ``verify_ssl_cert `` keyword argument and setting it to ``False ``::
125121
126- Here, replace `` <CA_CERT_FILE> `` with the path to the CA certificate file.
122+ >>> connection = client.connect(..., verify_ssl_cert=False)
127123
128124
129125Client verification
@@ -148,7 +144,7 @@ Timeout
148144-------
149145
150146Connection timeouts (in seconds) can be configured with the optional
151- ``timeout `` argument:
147+ ``timeout `` argument::
152148
153149 >>> connection = client.connect(..., timeout=5)
154150
0 commit comments