This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
My TCP implementation is working fine. Now I wanted to add TLS functionality using parts of the tcpEchoTLS.c implementation of simplelink_cc32xx_sdk_7_10_00_13\examples\rtos\CC3235S_LAUNCHXL\ns\tcpechotls.
When the statement
status |= SlNetIf_loadSecObj(SLNETIF_SEC_OBJ_TYPE_RSA_PRIVATE_KEY,
PRIVATE_KEY_FILE, strlen(PRIVATE_KEY_FILE)-1, srvKeyPem,
srvKeyPemLen, SLNETIF_ID_1);
is executed the following error is returned:
/* Parameters are invalid */
#define SL_RET_CODE_INVALID_INPUT (-2006L)
Not entirely sure about what to do I changed the statement to
status |= SlNetIf_loadSecObj(SLNETIF_SEC_OBJ_TYPE_RSA_PRIVATE_KEY,
PRIVATE_KEY_FILE, strlen(PRIVATE_KEY_FILE), srvKeyPem,
srvKeyPemLen, SLNETIF_ID_1);
Now the code failes at
this thread has been assigned to a Wi-Fi engineer and he should respond shortly
Hi,
You get this error if the interface does not exist or if you have an invalid parameter.
Are you using the Dummy Key and Certificate or are you using your own?
Best,
Rogelio
Hi Rogelio
I assumed that the certificate.h file (srvCAPem / srvKeyPem string) holds this information in this example.
So what are these strings for?
Is the instruction
loading the file?
If so: I have probably have to program these files first with Uniflash - right?
Thomas
Hi Thomas,
If you are using your own files, then yes you will need to program them first.
I would go over section 7 of the Network processors guide
https://www.ti.com/lit/ug/swru455m/swru455m.pdf
Best,
Rogelio