MC60 AWS Certificate using AT+QSECWRITE

Hi,
Please find the attached files.
files.zip (7.8 KB)

Sample certificates are defined in alua_gsmMqtt.h file. Refer other C files how is copied and sent to module. Sorry to say, do not have that much time to explain in details and can’t share the project as whole. In shortcut open in notepad and trace function calling flow. alua_miscConv16bToDecAscii() is a crucial function.

It needs conversion from ASCII certificate to hex… refer the code attached.

Please attempt and let me know your success, will be happy to know.

regards
PK Jena

1 Like

I did it help you? Your issue resolved?

sorry now only i am seeing your reply.
i downloaded your zip file sent by you.
i dont have the mqtt library for mc60. and other libraries to execute the code
so if possible please give me at commands , if possible give me your mail id i will mail you my problem.

these are the commands i am using

  • AT+QIFGCNT=0
  • AT+QICSGP=1," airtelgprs.com"
  • AT+QSECWRITE=“RAM:ca_cert.pem”,1171,100
  • AT+QSECWRITE=“RAM:client.pem”,1143,100
  • AT+QSECWRITE=“RAM:client_key.pem”,1647,100
  • AT+QSSLCFG=“cacert”,2,“RAM:ca_cert.pem”
  • AT+QSSLCFG=“clientcert”,2,“RAM:client.pem”
  • AT+QSSLCFG=“clientkey”,2,“RAM:client_key.pem”
  • AT+QSSLCFG=“seclevel”,2,2
  • AT+QSSLCFG=“SSLVERSION”,2,4
  • AT+QSSLCFG=“CIPHERSUITE”,2,“0XFFFF”
  • AT+QSSLCFG=“ignorertctime”,1
  • AT+QMTOPEN=0,“a1xz0bi619mac4-ats.iot.eu-north-1.amazonaws.com”,8883
  • AT+QMTCONN=0,“basicPubSub”

but at
AT+QMTOPEN=0,“a1xz0bi619mac4-ats.iot.eu-north-1.amazonaws.com”,8883
OK
+QMTOPEN: 0,-1

please help me sir.
my mail id is lyingloard@gmail.com