Trying to connect to secure HTTP result in ERROR

Hi Team,

We are using SDK 2.5.2 with MFW 1.3.5

We need to download a secure file from amazon, we first tried to download file from public server connecting to port 80 and succeeded doing so, but when we try to connect to secure server (port 443) with sec tag we burned at slot 120 it result with error:

[17:41, 19/10/2024] : AT#XHTTPCCON=1,"s3.amazonaws.com",80
#XHTTPCCON: 1
OK
(Read data from server)

Port 80 goes OK


[17:43, 19/10/2024] : AT#XHTTPCCON=1,"s3.amazonaws.com",443,120
#XHTTPCCON: 0
ERROR

Sec tag 120 is where the certificate is burned


[17:44, 19/10/2024] : AT#XHTTPCCON=1,"s3.amazonaws.com",443
#XHTTPCCON: 1
OK

If we connect without applying the sec tag it does connect but we can't download the file

#XHTTPCRSP:0,1


[17:49, 19/10/2024] : AT#XHTTPCCON=1,"firmware.v2.staging.s3.us-east-1.amazonaws.com",443,120
#XHTTPCCON: 0
ERROR


[17:50, 19/10/2024] : AT#XHTTPCCON=1,"firmware.v2.staging.s3.us-east-1.amazonaws.com",443
#XHTTPCCON: 1
OK

Hope I managed to explain the problem coherently

We can't provide modem trace because the layout of our product isn't design for that (we tried via UART with no success) 

Parents Reply Children
  • I tried to use the evaluation board to connect:

    > AT%CMNG=1

    %CMNG: 0,6,"0606060606060606060606060606060606060606060606060606060606060606"
    %CMNG: 42,0,"39FDCF28AEFFE08D03251FCCAF645E3C5DE19FA4EBBAFC89B4EDE2A422148BAB"
    %CMNG: 120,0,"B65BB6241F7697CD536056D2E3340DEBF1DBABB43C15C44C93BE490BFA6D43F1"
    %CMNG: 16842753,0,"A86D8BF8D75130765A6453960E0E4E5158E0F3E43F86699EFE36190C463A25CF"
    %CMNG: 16842753,1,"F9309786A679F15B7D0603973975CAF953743E313EB74C6446858B5EAC64F1C1"
    %CMNG: 16842753,2,"5575053FE5DB8104A3A5D60C1D0A8DE4F84BE93244C3AE1A4E514C870815E78D"
    %CMNG: 4294967293,10,"2C43952EE9E000FF2ACC4E2ED0897C0A72AD5FA72C3D934E81741CBD54F05BD1"
    %CMNG: 4294967294,6,"1C3FFC81089AED3A3DF394E9167CE72F4A5775FD636BA65477EA447F98740E06"
    %CMNG: 4294967292,11,"2027C4699EAA90A414D33FA81B975C0FDEDEFB04A19CEA1ED43A8876CAD31E89"

    > AT#XHTTPCCON=1,"firmware.v2.staging.s3.us-east-1.amazonaws.com",443,120

    ERROR
    [00:02:30.886,596] <wrn> modem_key_mgmt: Key not found
    [00:02:30.890,777] <wrn> modem_key_mgmt: Key not found
    [00:02:30.894,927] <wrn> modem_key_mgmt: Key not found
    [00:02:30.894,927] <err> slm_tls: No credential for sec_tag:120
    [00:02:30.894,958] <err> slm_httpc: Fail to load credential: -22

    How come it doesn't find the key?

Related