Tool/software: Code Composer Studio
Hi,
I am trying make the HTTPS example "httpsgetCC3100_EK_TM4C129EXL_TI_TivaTM4C129ENCPDT" work.
It fails. Everything goes fine except that the certificate conversation with the server fails.
My log:
00:00:17.611 makeHttpsCall: HTTPS POST req host iotqa.gluon.com:443 uri /gluon/api/v1/terminal/boot
00:00:18.529 makeHttpsCall: HTTPCli_initSockAddr successful
00:00:18.693 makeHttpsCall: HTTPCli_connect successful
00:00:18.706 makeHttpsCall: HTTPCli_sendRequest successful
00:00:18.820 makeHttpsCall: ***ERROR*** - request failed ret http 400
Error http 400 comes because plain http request was sent to https port 443.
Somehow the code
HTTPCli_Params_init(¶ms);
params.tls = tls;
is not taking effect. Server gets no certificate. I have the correct certificate which works fine in NDK environment.
Can somebody help me here please.
Regards...Narinder