ESP8266 Publishing to hivemq :No certs found

Hi forum members,
Im following this guide: HiveMQ Cloud

I upload the certificate file and get this in the debugger:

[LittleFS] data : C:\Users\lais\Documents\Arduino\sketch_jan18a\data
[LittleFS] size : 2024
[LittleFS] page : 256
[LittleFS] block : 8192
[LittleFS] upload : C:\Users\lais\AppData\Local\Temp\arduino_build_578744/sketch_jan18a.mklittlefs.bin
[LittleFS] address : 0x200000
[LittleFS] reset : --before default_reset --after hard_reset
[LittleFS] port : COM3
[LittleFS] speed : 115200
[LittleFS] python : C:\Users\lais\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1\python3.exe
[LittleFS] uploader : C:\Users\lais\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\tools\ v3.0
Serial port COM3
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 84:0d:8e:92:e8:c9
Uploading stub…
Running stub…
Stub running…
Configuring flash size…
Auto-detected Flash size: 4MB
Compressed 2072576 bytes to 2281…
Writing at 0x00200000… (100 %)
Wrote 2072576 bytes (2281 compressed) at 0x00200000 in 0.2 seconds (effective 81581.4 kbit/s)…
Hash of data verified.
Hard resetting via RTS pin…

Then I upload the code to the 8266 board but I still get:

20:46:04.353 → Number of CA certs read: 0
20:46:04.400 → No certs found. Did you run and upload the LittleFS directory before running

I followed the guide religiously but still getting this error. pls help

Idk if this matters but my board baud rate is 9600 amd the littleFS is trying to upload 115200

Hi subwayfootlogn,

Welcome to our HiveMQ community! Unfortunately I am not familiar with embedded, so please correct me if I’m wrong, but it seems to me that the issue is not with HiveMQ Cloud but rather with uploading files on your device?
The error message indicates that the .ar file is either not there or it is invalid (i.e. the script is unable to read a CA cert from it). Can you check if the file is indeed uploaded?

Dasha from HiveMQ Team

Hello all.
Basically what happened was that my was not valid.

there is alot of ways to solve it as said in the forums but the simplest way is:

  1. Install Git
  2. Place the file into “yourgitdirectory/Git/usr/bin” as there is an openssl.exe there
  3. Copy the ar.exe file to this directory also
  4. Run the python file

You should now get a valid certificate in your data folder

Hi subwayfootlong,

Great that you have found a solution, thank you for sharing it!

Kind regards,
Dasha from HiveMQ Team