Closed wenjun1972 closed 1 year ago
changed as below and then the convert "OK" now. modem.sendAT("+CSSLCFG=\"CONVERT\",1,\"deviceCert.crt\",\"devicePrivateKey.pem\""); if (modem.waitResponse() != 1) { Serial.println("Convert deviceCert.crt and devicePrivateKey.pem failed!"); }
But have the connection issue after that, will close this issue for convert error.
AT+SMSSL=1,"rootCA.crt","deviceCert.crt","devicePrivateKey.pem"
ERROR
Hi, I am trying to use rootCA, device cert and private key to register on AWS MQTT. Below is part of my code running on Platformio.
I can see three certs were well downloaded OK Writing:1680 overage:0 Wirte done!!! AT+CFSTERM
Whereas the covert process showed OK only to rootCA certs but failed on deviceCert and devicePrivateKey, any idea about these errors?
AT+CSSLCFG="CONVERT",2,"rootCA.crt" OK
AT+CSSLCFG="CONVERT",1,"deviceCert.crt" ERROR Convert deviceCert.crt failed!
AT+CSSLCFG="CONVERT",1,"devicePrivateKey.key" ERROR Convert devicePrivateKey.key failed!