Unabled to connect to MQTT serverless option

I have a application which is supposed to make a TLS connection to the free serverless MQTT option. To check that the application is working as intended, i have tried running the hivemq4 docker image with TLS enabled, and the device can connect to it just fine. However when trying to connect to the Cloud broker it fails.
I am able to connect to the cloud via the same network, using the MQTTX program.
Info about the application:
CPU: STM32F429 with external SDRAM
Encryption lib: WolfSSL
MQTT client: costume made bareminium for MQTT v3.1

Hello @sync_this ,

First off, welcome to the HiveMQ Community!

To start with, there are some additional requirements that are worth mentioning when utilizing a HiveMQ Cloud free serverless host. Namely, that the certificate provided is signed by the CA ‘Let’s Encrypt’, and TLS-SNI is required.

While most devices accept Let’s Encrypt signed certs automatically, some devices require the server CA file be provided for validation. This can be obtained here.

TLS-SNI is an extension of TLS that allows for hostname validation during TLS handshakes, and this is required for connecting devices - it is worthwhile to ensure that this is supported with the TLS implementation utilized.

As for the HiveMQ4 docker image, it may be worth clarifying how this was configured - if using mTLS, self-signed certificates, etc.

Let us know if you have any further questions, or additional details we can assist with!

Best,
Aaron from the HiveMQ Team