diff --git a/pika/connection.py b/pika/connection.py
index b1278f3..c2f169f 100644
--- a/pika/connection.py
+++ b/pika/connection.py
@@ -903,9 +903,9 @@ class URLParameters(Parameters):
             #
             # SSLContext.load_verify_locations(cafile=None, capath=None, cadata=None)
             try:
-                opt_protocol = ssl.PROTOCOL_TLS
+                opt_protocol = ssl.PROTOCOL_TLS_CLIENT
             except AttributeError:
-                opt_protocol = ssl.PROTOCOL_TLSv1
+                opt_protocol = ssl.PROTOCOL_TLSv1_2
             if 'protocol' in opts:
                 opt_protocol = opts['protocol']
 

diff --git a/tests/unit/connection_parameters_tests.py b/tests/unit/connection_parameters_tests.py
index 75d8a8a..ff8dc04 100644
--- a/tests/unit/connection_parameters_tests.py
+++ b/tests/unit/connection_parameters_tests.py
@@ -12,18 +12,16 @@ import pika
 from pika.compat import urlencode, url_quote, dict_iteritems
 from pika import channel, connection, credentials, spec
 
-
 # disable missing-docstring
 # pylint: disable=C0111
 
 # disable invalid-name
 # pylint: disable=C0103
 
-
 # Unordered sequence of connection.Parameters's property getters
 _ALL_PUBLIC_PARAMETERS_PROPERTIES = tuple(
-    attr for attr in vars(connection.Parameters) if not attr.startswith('_')
-    and issubclass(type(getattr(connection.Parameters, attr)), property))
+    attr for attr in vars(connection.Parameters) if not attr.startswith('_') and
+    issubclass(type(getattr(connection.Parameters, attr)), property))
 
 
 class ChildParameters(connection.Parameters):
@@ -642,6 +640,20 @@ class URLParametersTests(ParametersTestsBase):
         params.port = params.DEFAULT_PORT
         self.assert_default_parameter_values(params)
 
+    def test_ssl_default_protocol_version_fallback(self):
+        """
+        This test does not set protocol_version option in ssl_options. Instead,
+        it relies on connection.URLParameters class to setup the default, and
+        then it asserts the protocol is what we expected (auto or TLSv1_2)
+        """
+        params = connection.URLParameters(
+            'amqps://foo.bar/some-vhost?ssl_options=%7B%27ca_certs%27%3A%27testdata%2Fcerts%2Fca_certificate.pem%27%7D'
+        )
+        self.assertTrue(
+            params.ssl_options.context.protocol == ssl.PROTOCOL_TLS_CLIENT or
+            params.ssl_options.context.protocol == ssl.PROTOCOL_TLSv1_2,
+            msg='Expected to fallback to a secure protocol')
+
     def test_no_url_scheme_defaults_to_plaintext(self):
         params = connection.URLParameters('//')
         self.assertIsNone(params.ssl_options)

Update fallback SSL/TLS protocol version
In the connection module, the method `URLParameters._set_url_ssl_options()` tries to set the secure protocol version to `ssl.PROTOCOL_TLS` and falls back to `ssl.PROTOCOL_TLSv1` if the first is not available (since it was introduced in 3.6 and this client supports 3.4+).

https://github.com/pika/pika/blob/c34c411874f049f2048aa5133ea20f87c95fa223/pika/connection.py#L905-L912

This has the following issues:
- The usage of `ssl.PROTOCOL_TLS` is [deprecated in 3.10](https://docs.python.org/3/library/ssl.html#ssl.PROTOCOL_TLS) in favour of ` ssl.PROTOCOL_TLS_CLIENT`
- The fallback sets an unsecure protocol

I propose the following changes:
1. Try to set [ssl.PROTOCOL_TLS_CLIENT](https://docs.python.org/3/library/ssl.html#ssl.PROTOCOL_TLS_CLIENT)
2. Fall back to [ssl.PROTOCOL_TLSv1_2](https://docs.python.org/3/library/ssl.html#ssl.PROTOCOL_TLSv1_2)

Those changes would address the usage of deprecated `ssl.PROTOCOL_TLS`, and would fall back to a secure protocol by default. The constant `ssl.PROTOCOL_TLSv1_2` was introduced in Python 3.4, therefore it is safe to assume this constant will be there for supported Python versions.
tests/unit/connection_parameters_tests.py::URLParametersTests::test_ssl_default_protocol_version_fallback
tests/unit/connection_parameters_tests.py::ParametersTests::test_blocked_connection_timeout tests/unit/connection_parameters_tests.py::ParametersTests::test_channel_max tests/unit/connection_parameters_tests.py::ParametersTests::test_connection_attempts tests/unit/connection_parameters_tests.py::ParametersTests::test_credentials tests/unit/connection_parameters_tests.py::ParametersTests::test_default_property_values tests/unit/connection_parameters_tests.py::ParametersTests::test_eq tests/unit/connection_parameters_tests.py::ParametersTests::test_frame_max tests/unit/connection_parameters_tests.py::ParametersTests::test_heartbeat tests/unit/connection_parameters_tests.py::ParametersTests::test_host tests/unit/connection_parameters_tests.py::ParametersTests::test_locale tests/unit/connection_parameters_tests.py::ParametersTests::test_ne tests/unit/connection_parameters_tests.py::ParametersTests::test_port tests/unit/connection_parameters_tests.py::ParametersTests::test_retry_delay tests/unit/connection_parameters_tests.py::ParametersTests::test_socket_timeout tests/unit/connection_parameters_tests.py::ParametersTests::test_ssl_options tests/unit/connection_parameters_tests.py::ParametersTests::test_tcp_options tests/unit/connection_parameters_tests.py::ParametersTests::test_virtual_host tests/unit/connection_parameters_tests.py::ConnectionParametersTests::test_bad_type_connection_parameters tests/unit/connection_parameters_tests.py::ConnectionParametersTests::test_callable_heartbeat tests/unit/connection_parameters_tests.py::ConnectionParametersTests::test_default_property_values tests/unit/connection_parameters_tests.py::ConnectionParametersTests::test_exlicit_none_socket_timeout tests/unit/connection_parameters_tests.py::ConnectionParametersTests::test_exlicit_none_stack_timeout tests/unit/connection_parameters_tests.py::ConnectionParametersTests::test_explicit_non_ssl_with_default_port tests/unit/connection_parameters_tests.py::ConnectionParametersTests::test_explicit_non_ssl_with_explict_port tests/unit/connection_parameters_tests.py::ConnectionParametersTests::test_explicit_ssl_with_default_port tests/unit/connection_parameters_tests.py::ConnectionParametersTests::test_explicit_ssl_with_explict_port tests/unit/connection_parameters_tests.py::ConnectionParametersTests::test_good_connection_parameters tests/unit/connection_parameters_tests.py::ConnectionParametersTests::test_parameters_accept_plain_string_locale tests/unit/connection_parameters_tests.py::ConnectionParametersTests::test_parameters_accept_unicode_locale tests/unit/connection_parameters_tests.py::ConnectionParametersTests::test_parameters_accepts_plain_string_virtualhost tests/unit/connection_parameters_tests.py::ConnectionParametersTests::test_parameters_accepts_unicode_string_virtualhost tests/unit/connection_parameters_tests.py::URLParametersTests::test_accepts_blank_username_and_password tests/unit/connection_parameters_tests.py::URLParametersTests::test_accepts_plain_string tests/unit/connection_parameters_tests.py::URLParametersTests::test_accepts_unicode_string tests/unit/connection_parameters_tests.py::URLParametersTests::test_default_property_values tests/unit/connection_parameters_tests.py::URLParametersTests::test_good_parameters tests/unit/connection_parameters_tests.py::URLParametersTests::test_no_ssl tests/unit/connection_parameters_tests.py::URLParametersTests::test_no_url_scheme_defaults_to_plaintext tests/unit/connection_parameters_tests.py::URLParametersTests::test_ssl tests/unit/connection_parameters_tests.py::URLParametersTests::test_url_decodes_username_and_password tests/unit/connection_parameters_tests.py::URLParametersTests::test_uses_default_port_if_not_specified tests/unit/connection_parameters_tests.py::URLParametersTests::test_uses_default_username_and_password_if_not_specified tests/unit/connection_parameters_tests.py::URLParametersTests::test_uses_default_virtual_host_if_not_specified tests/unit/connection_parameters_tests.py::URLParametersTests::test_uses_default_virtual_host_if_only_parameters_provided tests/unit/connection_parameters_tests.py::URLParametersTests::test_uses_default_virtual_host_if_only_slash_is_specified tests/unit/connection_parameters_tests.py::URLParametersTests::test_uses_default_virtual_host_via_encoded_slash_downcase tests/unit/connection_parameters_tests.py::URLParametersTests::test_uses_default_virtual_host_via_encoded_slash_downcase_ending_with_slash tests/unit/connection_parameters_tests.py::URLParametersTests::test_uses_default_virtual_host_via_encoded_slash_upcase tests/unit/connection_parameters_tests.py::URLParametersTests::test_uses_default_virtual_host_via_encoded_slash_upcase_ending_with_slash