EC200U-CN MQTT with TLS/SSL port 8883

I am getting the connection refuse every time when i use the 8883 port with cloud broker.
I uploaded the CA file in UFS and also tried with SFS file system but still not worked.
Tried with HiveMQ and EMQX by downloading the certificate from the respective broker but show the same as connection refuses.
Here is the commands that I am using
AT+QSSLCFG=“cacert”,2,“SFS:userkey.pem”

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

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

OK
AT+QMTCFG=“recv/mode”,2,0,1

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

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

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

OK
AT+QMTCFG=“version”,2,4

OK
AT+QMTCFG=“session”,0,0

OK
AT+QMTOPEN=2,“hae55da5.ala.asia-southeast1.emqxsl.com”,8883

OK

+QMTOPEN: 2,0
AT+QMTCONN=2,“EC200U”,“sandesh_kale_66”,“Sandesh@123”

OK

+QMTCONN: 2,0,5

+QMTSTAT: 2,4

I’m trying to establish a connection to an MQTT broker using an EC200U module. I’ve tested the connection using an online client, and it works fine. However, when I try to connect using the EC200U module, the connection is refused.
@Bean.Wang-Q
Kindly help me to resolve the issue

you need to add

AT+QSSLCFG=“seclevel”,2,1
AT+QSSLCFG=“sni”,2,1

1 Like

Did using this slove your problem? Because I am having the same problem. @Sandesh_Kale

when ever i am giving this AT+QMTCFG=“SSL”,0,1 command i got ERROR.

1 Like

Dear @Piyush_Chaudhari ,

Thank you for reaching out again.

Kindly check your mail inbox.

Best Regards,
Aghelan

Using the above mentioned commands and the commands which I already mentioned, combined it worked for me.