Skip to content

Commit c39fef2

Browse files
committed
address feedback
1 parent 060623c commit c39fef2

File tree

1 file changed

+13
-11
lines changed
  • source/includes/troubleshooting

1 file changed

+13
-11
lines changed

source/includes/troubleshooting/tls.rst

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,16 @@ message:
134134
135135
MongoServerSelectionError: 886E0000:error:0A000152:SSL routines:final_renegotiate:unsafe legacy renegotiation disabled:c:\ws\deps\openssl\openssl\ssl\statem\extensions.c:922:
136136
137-
These types of errors occur due to outdated or buggy SSL proxies that mistakenly
137+
These types of errors occur because of outdated or buggy SSL proxies that mistakenly
138138
enforce legacy `TLS renegotiation <https://www.ibm.com/docs/en/i/7.3?topic=settings-renegotiation>`__.
139139

140-
To resolve this issue, use the ``UnsafeLegacyServerConnect`` option with the
141-
``OPENSSL_CONF`` environment variable. Create a configuration
142-
file with the following content:
140+
To resolve this issue, create a configuration file that includes the
141+
``UnsafeLegacyServerConnect`` option. This option requires OpenSSL v3.0.4 or
142+
greater. The following example shows how to set the ``UnsafeLegacyServerConnect``
143+
option:
143144

144145
.. code-block:: shell
146+
:emphasize-lines: 10
145147
146148
openssl_conf = openssl_init
147149
@@ -154,16 +156,16 @@ file with the following content:
154156
[system_default_sect]
155157
Options = UnsafeLegacyServerConnect
156158
157-
Then run Python using that OpenSSL config file:
159+
Then run Python while setting the ``OPENSSL_CONF`` environment variable to use
160+
OpenSSL configuration file you just created:
158161

159162
.. code-block:: shell
160163
161164
OPENSSL_CONF=/path/to/the/config/file/above.cnf python ...
162165
163-
The ``UnsafeLegacyServerConnect`` option in ``OPENSSL_CONF`` requires OpenSSL v3.0.4
164-
or greater.
166+
.. important::
165167

166-
.. warning::
167-
168-
This workaround should only be used as a last resort to address ``unsafe legacy
169-
renegotiation disabled`` errors.
168+
Because setting the ``UnsafeLegacyServerConnect`` option has
169+
`security implications <https://docs.openssl.org/3.0/man3/SSL_CTX_set_options/#patched-openssl-client-and-unpatched-server>`__,
170+
this workaround should only be used as a last
171+
resort to address ``unsafe legacy renegotiation disabled`` errors.

0 commit comments

Comments
 (0)