Is it possible to create one config file for RabbitMQ which will be connect with client use TLSv1.3 on Windows which suport this TLS (Windows Server 2022, Windows 11) and TLSv1.2 otherwise. I tryed do it and I can connect to RabbitMQ by TLSv1.3 on Windows which support this version of TLS but on older Windows version I don't connect to RabbitMQ. If I configure config file to suport TLSv1.2 with cyperhs suporting TLSv1.3 for connection on older version Windows I can connect but on new Windows i can't connect with TLSv1.3(I tested it by change order version {versions, ['tlsv1.3', 'tlsv1.2']})
The example of options which I tested in config file based on:
https://www.rabbitmq.com/ssl.html.
[
{ssl, [{versions, ['tlsv1.3', 'tlsv1.2']}]},
{rabbit, [
{ssl_listeners, [5671]},
{ssl_options, [{cacertfile, "/path/to/ca_certificate.pem"},
{certfile, "/path/to/server_certificate.pem"},
{keyfile, "/path/to/server_key.pem"},
{versions, ['tlsv1.3', 'tlsv1.2']},
{ciphers, [
"TLS_AES_256_GCM_SHA384",
"TLS_AES_128_GCM_SHA256",
"TLS_CHACHA20_POLY1305_SHA256",
"TLS_AES_128_CCM_SHA256",
"TLS_AES_128_CCM_8_SHA256"
]},
{honor_cipher_order, false},
{honor_ecc_order, false},
]}
]}
].