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.

Generating and Flashing SSL certificates

Other Parts Discussed in Thread: CC3200, UNIFLASH

Hello,

I'm working on serial_wifi project in CC3200 SDK. In its documentation I got to the following description:

"5. The communication is based on secure sockets. So, the server key, server certificate, client certificate need to be
flashed in the SFLASH at file IDs 129,130,131 respectively. Please refer the Generating SSL certificates section for
generating certificates using OpenSSL.
For flashing the certificates using UniFlash:(For detailed instructions about using Uniflash, refer Uniflash User
Guide.) "

Can anybody explain me why this certificates are neccerly in this prdgect, and how can I generate and flash them in CC3200? Thanks in advice!


Best regards,

Sergey.

  • Hi Sergey,

     

    The certificates are required for establishing a secure connection between the client and the server. The "Generating SSL certificates" section gives a detailed procedure for creating the certificates using OpenSSL.

    For flashing the certificates the Uniflash tool has to be used.The generated certificates have to be flashed at "/cert/129.der" , "/cert/130.der" , "/cert/131.der" file ID as described in the wiki page.

    The application can also be used over unsecure sockets. The "SECURE_SOCKETS" macro in serial_wifi.h file has to be undefined for disabling secure sockets.

     

    Regards,

    Prathyusha Teja.I

  • Hi,

    If it's possible to establish connection according this picture:

     My general question is: is it necessarily to flash this certificates in CC3200, to connect CC3200  to the PC (as shown in the picture above). If the response is YES - if it's possible to get my goal if I only follow the steps in serial_wifi document? If the connection isn't secured, is it necessarily to flash this certificates? Which example from CC3200 SDK is related to unsecured connection between server and client?

    Thanks regards,

    Sergey!

  • Hi Sergey,

    Certificates are only required for establishing a secured SSL connection. even that is not a must, but then you are hurting your level of security.

    The serial WiFi example is assuming that the two sides are using CC3200, so, you will need to take the code used in the example and compile it on your PC.

    As Prathyusha wrote, you can just comment out the SECURE_SOCKETS define in order to use unsecured sockets.

    Thanks,
    Alon

  • Thanks to all,

    I found the macros in the example. I try to establish connection between my PC and CC3200. On my PC runs hercules_3-2-6 tool, which I configured as Server and It listens on port 3000. The API function which makes a connection between client and server is  BsdTcpClient(PORT_NUM) (in this case),right ?

    Regards,

    Sergey!

  • Hello,

    Can anybody help me: If it's possible to RUN my application code, without debug mode of CCS (I use CC3200 bemo board). I want to connect power supply to the chip, and to see the connection results on my serial terminal without execute the application code under debug mode of CCS.

    Thanks regards,

    Sergey!

  • Hi Sergey,

    I understand your question is about running your application from Serial Flash and not from RAM using CCS debugger.

    You can flash .bin file of your application to Serial Flash using uniflash and it will execute once you press Reset Button.

    Please remember to remove SOP-2 Jumper after flashing the MCU image.

    Kindly refer this link for flashing

    Regards,

    Kaushal