BG95 - M2 azure iot cloud connection using SAS token

Hello Everyone,
I am trying to connect Azure IoT cloud using MQTT with SAS token.
Here is log of my AT commnads. It always failed to open network either on 1883 or 8883.
Can anyone guide me what can be wrong. ?
Am i missing some configurations ?

AT+CREG?

+CREG: 1,5

OK
AT+CEREG?

+CEREG: 1,5

OK
AT+QNWINFO

+QNWINFO: “eMTC”,“26201”,“LTE BAND 3”,1300

OK
AT+QIACT?

+QIACT: 1,1,1,“100.97.24.4”

OK
AT+QMTCFG=“ssl”,0,1,2

OK
AT+QSSLCFG=“seclevel”,2,2

OK
AT+QSSLCFG=“sslversion”,2,4

OK
AT+QSSLCFG=“ciphersuite”,2,0XFFFF

OK
AT+QSSLCFG=“ignorelocaltime”,2,1

OK
AT+QMTOPEN=0,“BD.net”,1883

OK

+QMTOPEN: 0,-1
AT+QMTOPEN=0,“BD.net”,8883

OK

+QMTOPEN: 0,-1

Regards,
Bhavin

Hi Bhavin
You do not have the relevant authentication certificates (cacert, clientcert, clientkey) configured. You can upload the relevant certificates and try again. Related commands are as follows:

AT+QSSLCFG=“cacert”,< SSL_ctxID> [,

< cacertpath > ]

AT+QSSLCFG=“clientcert”,< SSL_ctxI

D> [,<clientcertpath>]

AT+QSSLCFG=“clientkey”,< SSL_ctxID

> [,<clientkeypath>]

If you don’t have a certificate, try AT+QSSLCFG= “seclevel”,2,0 ignore authentication.

BR
tabor

@tabor.tang-Q ,

Hi ,
i removed AT+QSSLCFG=“seclevel”,2,2 and tried to connect using SAS token.
It worked fine.
Thank you.