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.

LAUNCHCC3235MOD: Serial_Wifi example with secure socket

Part Number: LAUNCHCC3235MOD

Hi,

I am running the serial_wifi example in CC32xx SDK3.2, but it only can work with unsecure socket(with SERIALWIFI_SECURE_SOCKETS commented out). If the secure socket is enabled, the client is not able to set up a connection with the server(both client and server are CC3235MOD LaunchPad).

Do I need extra coding or certificate to use the serial_wifi example with secure socket? Thanks.

Best regards,

Shuyang

  • Hi Shuyang,

    Yes, you will need to add a certificate chain and private key for both the server and the client.

    In addition, each of them should contain the root CA of the peer

    The 3 files (for each device) should be stored in flash and they needs to be referred by the following macros (the default is using the dummy Playground certificates - so it should work if you just store these 3 files in each of devices' flash):

    #define SERIALWIFI_CERT_FILE_NAME                         "dummy-root-ca-cert"
    #define SERIALWIFI_CERT_KEY_FILE_NAME                "dummy-trusted-cert-key"
    #define SERIALWIFI_CHAIN_FILE_NAME                       "trusted-chain.pem"

    For more details, please refer to the programmers guide (capther7, https://www.ti.com/lit/pdf/swru455) and/or to the certificate handling guide (https://www.ti.com/lit/pdf/swpu332). 

    Please also note that this example is not supported (it is not part of the SDK since SDK3.2) for more than a year. Is this an old design?

    Br,

    Kobi