# Issues connecting ESP32 to my web cluster

**URL:** <https://community.hivemq.com/t/issues-connecting-esp32-to-my-web-cluster/3561>\
**Category:** HiveMQ Cloud\
**Created:** [February 9, 2025, 4:12am UTC](https://community.hivemq.com/t/issues-connecting-esp32-to-my-web-cluster/3561 "2025-02-09T04:12:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Daria\_H](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@Daria\_H](https://community.hivemq.com/u/Daria_H)\
**Post date:** [February 11, 2025, 7:47am UTC](https://community.hivemq.com/t/issues-connecting-esp32-to-my-web-cluster/3561/2 "2025-02-11T07:47:52Z")

</div>

Hi @SamuelCruz72

Welcome to the HiveMQ Community! 🎉

In the failing code, the certificate is stored as a `PROGMEM` string with inconsistent indentation. Ensure that lines between `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----` are on separate lines, without leading spaces.

Refer to this working example for guidance: [ESP32 does connect to the server](https://community.hivemq.com/t/esp32-does-not-connect-to-the-server/3293/2).

Hope this helps! Let me know if you have any questions.

Best,  
Dasha from the HiveMQ Team

---

_[View the full topic](https://community.hivemq.com/t/issues-connecting-esp32-to-my-web-cluster/3561)._
