Instead of using tlsConfig = altcp_tls_create_config_client(NULL, 0);. I tried "thousand" ways and no positive result.
With NULL and zero values it works great, but I think it is not a proper way to connect our pico to our server.
raspberrypi/pico-sdk#1299