Hi everybody,
I’m trying to connect my RC7620 to an HTTPS server and the socket creation always failed.
The result of the command AT+KTCPSTAT=1 after AT+KTCPCNX=1 is +KTCPSTAT: 0,13,0,0 which means “SSL error”.
The module firmware version is SWI9X07H_00.08.07.00 which is the last one available currently.
Here are the logs of my test:
18/10/2021 11:56:37.089 [TX] - AT+CREG?
*18/10/2021 11:56:37.105 [RX] - *
+CREG: 0,1
OK
18/10/2021 11:56:37.752 [TX] - AT+CSQ
*18/10/2021 11:56:37.761 [RX] - *
+CSQ: 21,99
OK
18/10/2021 11:56:39.144 [TX] - AT+CCLK?
*18/10/2021 11:56:39.155 [RX] - *
+CCLK: “21/10/18,09:56:37+08”
OK
18/10/2021 11:56:39.904 [TX] - AT+CGATT=1
*18/10/2021 11:56:39.925 [RX] - *
OK
18/10/2021 11:56:40.824 [TX] - AT+KPATTERN="–EOF–"
*18/10/2021 11:56:40.838 [RX] - *
OK
18/10/2021 11:56:41.592 [TX] - AT+CGREG?
*18/10/2021 11:56:41.607 [RX] - *
+CGREG: 0,1
OK
18/10/2021 11:56:42.616 [TX] - AT+KCNXCFG=1,“GPRS”,“orange.fr”
*18/10/2021 11:56:42.665 [RX] - *
OK
18/10/2021 11:56:43.992 [TX] - AT+KCNXPROFILE=1
*18/10/2021 11:56:44.011 [RX] - *
OK
18/10/2021 11:56:44.680 [TX] - AT+KURCCFG=“TCP”,0,0
*18/10/2021 11:56:44.700 [RX] - *
OK
18/10/2021 11:56:53.329 [TX] - AT+KCERTSTORE=0
*18/10/2021 11:56:53.355 [RX] - *
CONNECT
18/10/2021 11:56:56.568 [TX] - -----BEGIN CERTIFICATE-----
/ certificate content /
-----END CERTIFICATE-----
18/10/2021 11:56:58.096 [TX] - --EOF–
*18/10/2021 11:56:58.119 [RX] - *
OK
18/10/2021 11:57:11.209 [TX] - AT+KCERTSTORE?
*18/10/2021 11:57:11.332 [RX] - *
CONNECT
root_cert,0,1200
-----BEGIN CERTIFICATE-----
/ certificate content /
-----END CERTIFICATE-----
local_cert,0,0
local_cert,1,0
local_cert,2,0
OK
18/10/2021 11:57:18.552 [TX] - AT+KTCPCFG=1,3,“my_server_address”,443,0
*18/10/2021 11:57:18.576 [RX] - *
+KTCPCFG: 1
OK
18/10/2021 11:57:22.064 [TX] - AT+KTCPCNX=1
*18/10/2021 11:57:22.102 [RX] - *
OK
18/10/2021 11:57:23.945 [TX] - AT+KTCPSTAT=1
*18/10/2021 11:57:24.633 [RX] - *
+KTCPSTAT: 0,13,0,0
OK
I think I did something wrong with the certificate or the certificate is not the good one (I don’t know).
Does anybody could help me on that subject?
Or does somebody cand share an HTTPS server adress with a good certificate I can test with my module before trying on our server?
Best regards,
Fabrice