Cert issue when connecting to Cloud Hive instance

Sure …

I use these to start connecting to the network

AT+CREG?
AT+COPS?
AT+CPSI?
AT+CEREG?
AT+NETOPEN?
AT+CGDCONT?

the PDP start the context with SSL session 0

AT+CSSLCFG="sslversion",0,4
AT+CSSLCFG="authmode",0,3
AT+CSSLCFG="ignorelocaltime",0,1
AT+CSSLCFG="cacert",0,"isrgrootx1.pem"
AT+CSSLCFG="ciphersuites",0,0xFFFF
AT+CSSLCFG="enableSNI",0,1

SSL check
AT+CSSLCFG?

Start MQTT TLS

AT+CMQTTSTART
AT+CMQTTACCQ=0,"client",1,4
AT+CMQTTSSLCFG=0,0
AT+CMQTTCONNECT=0,"tcp://xxx.s1.eu.hivemq.cloud:8883",60,1,"xxx","xxx"

Disconnect

AT+CMQTTDISC=0,120
AT+CMQTTREL=0
AT+CMQTTSTOP

In the case of a SIM7600x download cert to the SIM via FTP

AT+CFTPSSTART
AT+CFTPSLOGIN="xxx.com",21,"FTPUser","xxx",0
AT+CFTPSLIST="/"
AT+CFTPSCWD="xxx.com"
AT+CFTPSPWD
AT+CFTPSGETFILE="isrgrootx1.pem",4  //4 puts the CA PEM on the SIM to /mssl_cert/
AT+CFTPSLOGOUT

AT+CCERTDOWN="isrgrootx1.pem",1939

Check size

AT+FSLS=2
AT+FSCD=C:
AT+FSCD="/mssl_cert/"
AT+FSATTRI="isrgrootx1.pem"
AT+CCERTLIST

isrgrootx1.pem should show 1939

1 Like