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.

CC3200: CC3200: SSL demo : error (-340) Handshake Failure

Part Number: CC3200

Hi all

I tried the SSL demo, but I am always getting the (-340) error : HANDSHAKE FAILURE

I am using SDK_1.5.0 and ServicePack_1.0.1.14-2.12.2.8

And I changed the ucMethod to SL_SO_SEC_METHOD_SSLv3_TLSV1_2 and uiCipher to SL_SEC_MASK_SECURE_DEFAULT

And download CA from https://pki.goog/repository


please help me to resolve the issue. thank

  • Hi Leon,

    Mine worked as expected.

    1. Does the defined filename at the top of main.c match the name of the certificate you programmed to the device?
    2. Have you updated the date & time definitions at the top of main.c?
    3. What is your SL_SEC_MASK_SECURE_DEFAULT defined as?

    Best regards,

    Sarah

  • Hi Sarah

    1. Does the defined filename at the top of main.c match the name of the certificate you programmed to the device  A:Yes i have confirmed
    2. Have you updated the date & time definitions at the top of main.c? A:Yes i have changes
    3. What is your SL_SEC_MASK_SECURE_DEFAULT defined as? AI use this example to define 

    #define SL_SEC_MASK_SECURE_DEFAULT                         ((SL_SEC_MASK_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256  <<  1)  -  1)

    Thank you for your reply and have a nice day

    Leon

  • Hi Leon,

    Ah, I was testing with the example default which is SL_SEC_MASK_TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA. Are you able to connect with this parameter?

    Best regards,

    Sarah

  • HI Sarah

    The example already works

    Thank you for your help and have a nice day

    Leon