FCM360W: License file Getting problem via HTTP

Hi,

I did the internet communication protocals like HTTP , MQTT and TCP also all are working fine. Even SSL MQTT connection was also working good.

But I established SSL MQTT connection with I have a old license file. Now I try to get new license file via HTTP , License file it comes but some difference I was faced different from EC200U and FCM360W

Because SSL MQTT connection was not established via license file getting from HTTP in FCM360W.

+QFLST: “ca.pem”,1315
+QFLST: “user.pem”,1034
+QFLST: “user_key.pem”,1696

I think ca.pem & user.pem are fine even sslversion 2,1 was getting response +QMTOPEN: 0,0 . So I suspect user_key.pem

I was tried to get more than 3 times getting license file but user_key.pem file content order mismatched.

Please check a below log and details. Please give a solution for this. Thanks in advance.

@Waleed_Zafar1

AT+QHTTPCFG="url","<URL_LINK>"
AT+QHTTPPOST=112,60,60
<POST DATA>
AT+QHTTPREAD=30

hi @UdhayaKumar_Mani
Can you please provide complete AT logs on FCM360W .
Thanks

Hi @Waleed_Zafar1

Please check below , I was attached full log.

I was doubted in CK CERT file , I don’t know why its format was misorder and I suspect that misorder was cause of SSL MQTT connection problem. Because If I am using license files getting from EC200U HTTP protocol and write in UFS system in FCM360 , SSL MQTT was connected successfully.

But I am getting license files from FCM360 HTTP protocol and write in UFS system in same FCM360, SSL MQTT was not connect.

So that’s why I suspect that CK file format may be a problem

Because In EC200U getting CK file have uniform order , In FCM360W had ununiform order.

Please check and give a solution for this.

Thanks,

[2024-02-19_09:34:27:084]  

[2024-02-19_09:34:28:654]RDY

[2024-02-19_09:34:32:471]

[2024-02-19_09:34:32:471]+QSTASTAT: "WLAN_CONNECTED"

[2024-02-19_09:34:33:213]

[2024-02-19_09:34:33:213]+QSTASTAT: "GOT_IP"

[2024-02-19_09:34:42:070]AT+QVERSION


[2024-02-19_09:34:42:070]+QVERSION: FCM360WAAR01A03



[2024-02-19_09:34:42:070]OK

[2024-02-19_09:34:45:838]AT+QGETWIFISTATE


[2024-02-19_09:34:45:838]+QGETWIFISTATE: ssid="wifitest",bssid="c2:22:1d:51:e5:8d",rssi=-39



[2024-02-19_09:34:45:838]OK

[2024-02-19_09:34:48:296]AT+QGETIP="AP"


[2024-02-19_09:34:48:296]+QGETIP: "0.0.0.0","0.0.0.0","0.0.0.0","192.168.194.188"



[2024-02-19_09:34:48:296]OK

[2024-02-19_09:34:49:431]AT+QGETIP="station"


[2024-02-19_09:34:49:431]+QGETIP: "2401:4900:4DE4:F9CE:E608:E7FF:FE1D:50C7","FE80::C022:1DFF:FE51:E58D","FE80::E608:E7FF:FE1D:50C7","2401:4900:4DE4:F9CE::C0"



[2024-02-19_09:34:49:431]+QGETIP: "192.168.194.7","192.168.194.188","255.255.255.0","192.168.194.188"



[2024-02-19_09:34:49:522]OK

[2024-02-19_09:35:18:496]AT+QHTTPCFG=?


[2024-02-19_09:35:18:496]+QHTTPCFG: "url", <urlstring>

[2024-02-19_09:35:18:496]+QHTTPCFG: "header", <name:value>

[2024-02-19_09:35:18:496]+QHTTPCFG: "auth", <username:password>

[2024-02-19_09:35:18:496]+QHTTPCFG: "sslctxid", (0-5)

[2024-02-19_09:35:18:496]+QHTTPCFG: "rsp/header", (0,1)

[2024-02-19_09:35:18:496]+QHTTPCFG: "rspout/auto", (0,1)

[2024-02-19_09:35:18:512]+QHTTPCFG: "closed/ind", (0,1)

[2024-02-19_09:35:18:617]+QHTTPCFG: "form/option",<name>,<file_name>,<content_type>



[2024-02-19_09:35:18:617]OK

[2024-02-19_09:35:19:530]AT+QHTTPCFG="url","<link>"


[2024-02-19_09:35:19:530]OK

[2024-02-19_09:35:21:335]AT+QHTTPPOST=112,60,60


[2024-02-19_09:35:25:470]CONNECT

[2024-02-19_09:35:27:889]

[2024-02-19_09:35:27:889]OK


[2024-02-19_09:35:29:225]

[2024-02-19_09:35:29:225]+QHTTPPOST: 0,200,2980

[2024-02-19_09:35:34:971]AT+QHTTPREAD=30


[2024-02-19_09:35:34:971]CONNECT

[2024-02-19_09:35:34:987]{"deviceId":"XXXXXXXXXXXXXXXXX","hostName":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX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2cph4hIsn\r\nJ4qyMZLAYhxYEpDJEIlpnwcEQYYwbb1Vvk5CnVX5mVlAHPdHbn10kQIDAQABAoIBAC9q75iAHGn0\r\n8yzRZzK7DRR0HTS/Tndj6Qtk6KnfcZMYmLJWQ21Q6tbIMXaRTdEQEFbjnqxgeyVZFuHlmqVuJzDC\r\nHqZE8VUsjfxtY5UM6VtbwYZImRlzO1TWe4FAHC2Za8Ez8uXaY2A7Vrhrr1xPElqeIGRMIoKeWTZv\r\nToxsg4XLdvcUsOgxznyz5Juqk12EVI7V5kUgBQdo60bZ46MsLV50+cbdz/aNyLUszfbQFiBnE/6S\r\nUYTHXNvABp6RkrCtePa+QxooPzF07daoYtBYIQtI6aRJrzqCufBoBOqo6yyNJWNqhq1nWDLZPKkV\r\n8gB4qOEGCvErzJmdhS4c7u07cAECgYEA590o3Jr/lzJupsUNDVlMO0DaszMRlbwN8ETrPtf8OMik\r\nHCPs3Q4x6Cqm/9/uAXI0UnXYb7+Tvwr\r\nGnLBx94Im68ZcfVK6FFV4mqsjIw0B7PuUQ6C5tWPFjKHVWaqAAcoxVvnO7wl63nopqVrgkg=\n-----END RSA PRIVATE KEY-----","clientCertificateExpirationDate":"XXXXXXXXXXXXXXXXXXXXXXXXX"}

[2024-02-19_09:35:38:162]OK



[2024-02-19_09:35:38:162]+QHTTPREAD: 0

[2024-02-19_09:40:09:102]AT+QFLST="UFS:"


[2024-02-19_09:40:09:102]+QFLST: "ca.pem",1314

[2024-02-19_09:40:09:240]+QFLST: "user.pem",1036

[2024-02-19_09:40:09:240]+QFLST: "user_key.pem",1696



[2024-02-19_09:40:09:240]OK

[2024-02-19_09:42:02:691]AT+QFDEL="UFS:user.pem"


[2024-02-19_09:42:02:766]OK

[2024-02-19_09:42:03:841]AT+QFDEL="UFS:user_key.pem"


[2024-02-19_09:42:03:918]OK

[2024-02-19_09:42:05:961]AT+QFLST="UFS:"


[2024-02-19_09:42:05:961]+QFLST: "ca.pem",1314



[2024-02-19_09:42:05:961]OK

[2024-02-19_09:42:54:832]AT+QFOPEN="user.pem"


[2024-02-19_09:42:54:832]+QFOPEN: 1



[2024-02-19_09:42:54:832]OK

[2024-02-19_09:42:57:662]AT+QFWRITE=1,1036


[2024-02-19_09:42:57:678]CONNECT

[2024-02-19_09:42:59:725]

[2024-02-19_09:42:59:725]+QFWRITE: 1036,1036



[2024-02-19_09:42:59:725]OK

[2024-02-19_09:43:03:421]AT+QFCLOSE=1


[2024-02-19_09:43:03:543]OK

[2024-02-19_09:43:20:148]AT+QFOPEN="user_key.pem"


[2024-02-19_09:43:20:164]+QFOPEN: 1



[2024-02-19_09:43:20:179]OK

[2024-02-19_09:43:21:799]AT+QFWRITE=1,1694


[2024-02-19_09:43:21:799]CONNECT

[2024-02-19_09:43:24:959]

[2024-02-19_09:43:24:959]+QFWRITE: 1694,1694



[2024-02-19_09:43:24:959]OK

[2024-02-19_09:43:31:017]AT+QFCLOSE=1


[2024-02-19_09:43:31:108]OK

[2024-02-19_09:43:35:796]AT+QFLST="UFS:"


[2024-02-19_09:43:35:796]+QFLST: "ca.pem",1314

[2024-02-19_09:43:35:796]+QFLST: "user.pem",1036

[2024-02-19_09:43:35:796]+QFLST: "user_key.pem",1694



[2024-02-19_09:43:35:796]OK

[2024-02-19_09:44:11:810]AT+QMTCFG="recv/mode",0,0


[2024-02-19_09:44:11:810]OK

[2024-02-19_09:44:12:797]AT+QMTCFG="ssl",0,1,2


[2024-02-19_09:44:12:797]OK

[2024-02-19_09:44:13:842]AT+QSSLCFG="cacert",2,"UFS:ca.pem"


[2024-02-19_09:44:13:842]OK

[2024-02-19_09:44:14:861]AT+QSSLCFG="clientcert",2,"UFS:user.pem"


[2024-02-19_09:44:14:861]OK

[2024-02-19_09:44:15:814]AT+QSSLCFG="clientkey",2,"UFS:user_key.pem"


[2024-02-19_09:44:15:829]OK

[2024-02-19_09:44:16:831]AT+QSSLCFG="seclevel",2,2


[2024-02-19_09:44:16:831]OK

[2024-02-19_09:44:17:814]AT+QSSLCFG="sslversion",2,4


[2024-02-19_09:44:17:828]OK

[2024-02-19_09:44:18:861]AT+QSSLCFG="ciphersuite",2,0x0035


[2024-02-19_09:44:18:861]OK

[2024-02-19_09:44:19:867]AT+QSSLCFG="ignorelocaltime",2,1


[2024-02-19_09:44:19:867]OK

[2024-02-19_09:44:20:868]AT+QMTOPEN=0,"<HOST>",8883


[2024-02-19_09:44:20:991]OK

[2024-02-19_09:44:21:369]

[2024-02-19_09:44:21:369]+QMTOPEN: 0,-1

[2024-02-19_09:46:37:722]AT+QSSLCFG="seclevel",2,1


[2024-02-19_09:46:37:722]OK

[2024-02-19_09:46:40:802]AT+QMTOPEN=0,"<HOST>",8883


[2024-02-19_09:46:40:832]OK

[2024-02-19_09:46:42:470]

[2024-02-19_09:46:42:470]+QMTOPEN: 0,0

[2024-02-19_09:46:53:114]AT+QSSLCFG="seclevel",2,2


[2024-02-19_09:46:53:114]OK

[2024-02-19_09:46:56:701]AT+QMTOPEN=0,"<HOST>",8883


[2024-02-19_09:46:56:701]OK



[2024-02-19_09:46:56:701]+QMTOPEN: 0,2

[2024-02-19_09:47:05:126]AT+QMTCONN=0,"<client_idx>","<client_ID>",""


[2024-02-19_09:47:05:278]OK

[2024-02-19_09:47:06:139]

[2024-02-19_09:47:06:139]+QMTCONN: 0,2



[2024-02-19_09:47:06:139]+QMTSTAT: 0,1

[2024-02-19_09:47:41:467]AT+QMTOPEN=0,"<HOST>",8883


[2024-02-19_09:47:41:558]OK

[2024-02-19_09:47:42:454]

[2024-02-19_09:47:42:454]+QMTOPEN: 0,-1


Can you download the downloaded file on EC200U and try to upload the license on FCM360W locally?