ESP32 MQTT Connection

Hi Guys

Someone that tried to connect on P1P using ESP32 by MQTT faced connection issue?
I`m trying to connect using the port 8883 with TLS, user and password but without success.
When tried to connect on test.mosquitto.org using the port 8883 with TLS worked fine.

My question is, what certificated I need to used to it, where I can get it?

Thank so much

Best Regards

Hi nfoliveira, have you achieved any success? I’m trying the same at the moment ^^

EDIT: Ok, I found answer on redit: https://www.reddit.com/r/BambuLab/comments/167r16h/esp32_mqtt_connection/

…and also some additional info here: ESP32 HTTPS Requests (Arduino IDE) | Random Nerd Tutorials

Just removed this line:
esp_client.setCACert(ca_cert);

…and replaced by this one:
esp_client.setInsecure();