I am trying to set a custom ssl certificate on a SIM800H module on my arduino (Adafruit FONA), in order to use it on mqtt with a secure TLS connection.
I am able to create and write the C:\ca.crt
file in the module's filesystem, thanks to the AT-commands found in this documentation.
However, I can't register it with the appropriate command AT+SSLSETCERT=C:\ca.crt,ABC
. It returns an error.
I checked the file content by reading it back and it is correct. I also tried with various valid certificates, encrypted or not, it never works.
I also tried enabling the secure TCP with the command AT+CIPSSL=1
, but this one also returns an error.
Adding random carriage returns at the top and/or bottom of the crt file didn't help.
The errors log are not helping, it just returns Error