WIFI 101 TLS mode and version

Hello,

I have spent three days trying to find the solution by my self. i am giving up and asking for some help.

In order to get connected to a secure mqtt server, i need to use TLS in the arduino side.

I have working client mqtt-spy that uses the following conf :

TLS version : TLSv1
TLS MODE : Certificates ans Keys provides externally
MQTT version : 3.1.1
Authentication : user authentication enabled.

I am trying to run this example without success cloud-examples/mqtt_send_digital.ino at master · arduino/cloud-examples · GitHub

i know that the authenticantion is OK and the MQTT is OK.

Do you have any idea about how to check/configure the TLS version and mode ?

Thanks per advence for your help