Other Parts Discussed in Thread: UNIFLASH,
I have modiefied the port and the wifi mode to be a client on local network in tcpechotls. I can ping before and after debug, but I always get refused connection. I am unsure this is intended for certs
define ROOT_CA_CERT_FILE "caCert.pem" //"DummyCA" #define PRIVATE_KEY_FILE "caKey.pem" //"DummyKey" #define TRUSTED_CERT_FILE "serverCert.pem" //"DummyTrustedCert"
and it fails on uart as "tcpHandler: failed to load objects"
//... status = SlNetIf_loadSecObj(SLNETIF_SEC_OBJ_TYPE_CERTIFICATE, ROOT_CA_CERT_FILE, strlen(ROOT_CA_CERT_FILE), srvCAPem, srvCAPemLen, SLNETIF_ID_1); status |= SlNetIf_loadSecObj(SLNETIF_SEC_OBJ_TYPE_CERTIFICATE, TRUSTED_CERT_FILE, strlen(TRUSTED_CERT_FILE), srvCertPem, srvCertPemLen, SLNETIF_ID_1); status |= SlNetIf_loadSecObj(SLNETIF_SEC_OBJ_TYPE_RSA_PRIVATE_KEY, PRIVATE_KEY_FILE, strlen(PRIVATE_KEY_FILE)-1, srvKeyPem, srvKeyPemLen, SLNETIF_ID_1); if(status < 0) { Display_printf(display, 0, 0, "tcpHandler: failed to load objects\n"); goto shutdown; }