Hello Quectel Support Team and Community,
We are experiencing an issue with establishing a TLS 1.2 connection using an EC200U module when the target server is using a 1024-bit RSA certificate. Connections to other servers with modern 2048-bit keys work perfectly.
1. Project Goal:
Our goal is to connect the EC200U module to a legacy server via MQTT over TLS. Due to server-side constraints that are beyond our control, we are forced to connect to an endpoint that uses a 1024-bit RSA key.
2. Hardware and Firmware Details:
- Module: Quectel EC200U-EU
- Firmware Version: EC200UEUAAR03A02M08
- Network Operator:
[MCI, Irancell.]
3. Problem Description:
We have configured the SSL context for TLS 1.2 and loaded the correct Root CA certificate. When we attempt to open the SSL connection using AT+QSSLOPEN, the operation fails, typically with an error code. While we can successfully connect to other test servers that use 2048-bit keys, the connection to the specific server with the 1024-bit key always fails.
4. AT Command Sequence & Log:
Here is a sanitized log of the AT commands we are using to configure and open the connection.
AT+QIACT=1
OK
AT+QIACT?
+QIACT: 1,1,1,“26.166.242.32”
OK
AT+qflst=“*”
+QFLST: “UFS:boot”,15004
+QFLST: “UFS:firm”,243616
+QFLST: “UFS:Test.txt”,8
+QFLST: “UFS:CA0”,730
+QFLST: “UFS:CC0”,726
+QFLST: “UFS:CK0”,900
+QFLST: “UFS:CK1”,1700
+QFLST: “UFS:CC1”,1094
+QFLST: “UFS:CA1”,1130
+QFLST: “UFS:CK2”,932
+QFLST: “UFS:CA2”,898
+QFLST: “UFS:CC2”,878
OK
AT+QSSLCFG=“sslversion”,3,3
OK
AT+QSSLCFG=“dtls”,3,0
OK
AT+QSSLCFG=“ciphersuite”,3,0xFFFF
OK
AT+QSSLCFG=“seclevel”,3,2
OK
AT+QSSLCFG=“cacert”,3,“UFS:CA0”
OK
AT+QSSLCFG=“clientcert”,3,“UFS:CC0”
OK
AT+QSSLCFG=“clientkey”,3,“UFS:CK0”
OK
AT+QSSLCFG=“sni”,3,0
OK
AT+QSSLCFG=“ignorelocaltime”,3,0
OK
AT+QSSLCFG=“negotiatetime”,3,300
OK
AT+QSSLCFG=“ignoreinvalidcertsign”,3,0
OK
AT+QSSLCFG=“ignorecertitem”,3,0
OK
AT+QSSLCFG=“ignoremulticertchainverify”,3,0
OK
AT+QSSLCFG=“session_cache”,3,0
OK
AT+QSSLOPEN=1,3,0,“gps.try.ir”,14060,0
OK
+QSSLOPEN: 0,579