The format of the SSL certificates were followed from the Quectel documentation for MQTT setup with SSL, while the AT+QMTCFG=“ssl”,0,1,2 was also used prior to attempting to open a connection.
The list of commands (along with their return messages) that were used are as follows:
AT+QMTCFG=“recv/mode”,1,0,1
OK
AT+QMTCFG=“SSL”,1,1,2
OK
AT+QFLST
+QFLST: “UFS:boot”,15004
+QFLST: “UFS:firm”,243616
+QFLST: “UFS:cacert.pem”,1376
+QFLST: “UFS:clientcert.pem”,1624
+QFLST: “UFS:clientkey.pem”,3324
OK
AT+QSSLCFG=“cacert”,2,“UFS:cacert.pem”
OK
AT+QSSLCFG=“clientcert”,2,“UFS:clientcert.pem”
OK
AT+QSSLCFG=“clientkey”,2,“UFS:clientkey.pem”
OK
AT+QSSLCFG=“seclevel”,2,2
OK
AT+QSSLCFG=“sslversion”,2,0
OK
AT+QSSLCFG=“ciphersuite”,2,0xFFFF
OK
AT+QSSLCFG=“ignorelocaltime”,2,1
OK
AT+QMTOPEN=1,“valid broker”,8883
+QMTOPEN: 1,1 (sometimes this shows as +QMTOPEN: 1,5)
OK
AT+QMTCONN=1,“thing ID”,“username”,“password”
+QMTCONN: 1,1
+QMTSTAT: 1,1