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.

unable to run the ssl demo program

Other Parts Discussed in Thread: UNIFLASH

I followed all the steps mentioned in the below link

http://processors.wiki.ti.com/index.php/CC32xx_SSL_Demo_Application

I have used uniflash software and uploaded the certificate. then i removed the SOP jumper and using the CCS run the ssl demo program.

but still i am getting error sl_connect function. 

I am getting -155 or -461 errors(shown in screen shot). any idea to debug and see the certificate present or not

Please help me to resolve the issue

  • Hi Sundaresan,

    It seems that you are not using the right root certificate.

    Please try not configuring the security method and encryption at all, meaning don't call any of the sl_SetSockOpt() functions.
    Just create the socket: iSockID = sl_Socket(SL_AF_INET,SL_SOCK_STREAM, SL_SEC_SOCKET);
    Then, immediately try to connect to your secure server: lRetVal = sl_Connect(iSockID, ( SlSockAddr_t *)&Addr, iAddrSize);

    Please let me know of your results.
    Not calling the sl_SetSockOpt() API calls, causes the network processor to skip the certificate verification phase. this will let us know if indeed the problem is within the certificate file.

    Thanks,
    Alon

  • Hi Sundaresan,

    I am closing the thread, if issue still exist please open a new thread and add a link to this one for reference.

    Thanks,
    Alon

  • I have tried by your idea then too I am getting error in the ssl();, pleas help me to solve the issue by giving the procedure for ssl program