• sales

    +86-0755-88291180

upload certificate to modem

2024-11-08 21:54:09 Ask

Hi,

How can I upload a .pem file to the A7670 modem? I am using an ESP23-S3 A7670E 4G development board and I want to connect to an MQTT broker over TLS. To do so I need to upload a CA bundle to the modem. I have used use the AT command AT+CCERTDOWN= to define the name and size of the .pem file. However I cannot find any information on how to upload the .pem file itself. Can you please advice?

Thanks,

Rui

MQTT TLS CA bundle
1answers
SpotPearGuestb6838
Answer time:
2024-11-11 14:22:24

It is recommended to upload .pem using the following command:


AT+CCERTDOWN="cacert.pem",899

AT+CCERTDOWN="client-cert.pem",1468

AT+CCERTDOWN="client-key.pem",1707

at+ccertlist

AT+CSSLCFG="cacert",0,"cacert.pem"

AT+CSSLCFG="clientcert",0,"client-cert.pem"

AT+CSSLCFG="clientkey",0,"client-key.pem"

AT+CSSLCFG="sslversion",0,4

AT+CMQTTCFG= "version",0,4

AT+CSSLCFG="authmode",0,2

AT+CSSLCFG?

AT+CMQTTSTART

AT+CMQTTACCQ=0,"MTIzODg0OTc1Mzg3ODM2NDE2MA==",1

AT+CMQTTCONNECT=0,"tcp://61.136.151.96:8883",60,1,"MTIzODg0OTc1Mzg3ODM2NDE2MA=="

Like0

report

Price: $34.49
Part Number: ESP32-S3-A7670E-4G
Brand: Spotpear