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.

CC3120: CA or cert files location

Part Number: CC3120
Other Parts Discussed in Thread: UNIFLASH

Hello,

I am trying to set up a TLS connection to a remote server using CC3120. I am not able to get pass the authentication step. I do not know if the certificate I installed in the file system is properly selected because the function sl_SetSockOpt() always returns 0, even if given a file name that does not exist. Right now, the certificate is put in the root directory. Do CA or cert files have to be placed in a specific directory/path?

P.S.: I am using personal security authentication, not enterprise.

XH

  • Hi XH,

    For a general TLS connection, the files do not have to be placed in a specific directory or path. You only have to do that if you need the files for authenticating during a connection to a WLAN with enterprise security. Since you are not doing that, you are okay.

    You should be able to see if the certificate is installed on the file system by using the user file browser in UniFlash ImageCreator when the device is in development mode. Check that and then also check to see what error code is returned by the connect function call for the TLS socket.

    Best Regards,
    Ben M