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.

CC3100 SSL Error Code -155

Other Parts Discussed in Thread: CC3100SDK, CC3200

I have update the servicepack to 1.0.0.10.0, but still use SDK 1.0.0 since we use CCS C Compiler and it took weeks to migrate the whole to work with this compiler and Microchip PIC24.

We are using SSL to post data to cloud, it worked before with 

method               = SL_SO_SEC_METHOD_TLSV1_1;

cipher               = SL_SEC_MASK_SSL_RSA_WITH_RC4_128_SHA; 

After we acquired new certificate for the website, sl_connect() returns error code -155 which suggested signature error.

Old certificate: signature algorithm: Sha1RSA

New certificate: signature algorithm: SHA256RSA

I thought it was caused by SHA256 not support with 1.0.0.1.2, so I updated the servicepack, and set

method               = SL_SO_SEC_METHOD_TLSV1_1;

cipher               = SL_SEC_MASK_TLS_RSA_WITH_AES_256_CBC_SHA256; 

It gave error -156.

BTW, i only copy the follow from new socket.h to old socket.h:

#define SL_SEC_MASK_TLS_RSA_WITH_AES_128_CBC_SHA256 (1 << 6)
#define SL_SEC_MASK_TLS_RSA_WITH_AES_256_CBC_SHA256 (1 << 7)
#define SL_SEC_MASK_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 (1 << 8)
#define SL_SEC_MASK_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 (1 << 9)

Please advise. Also does Service Pack 1.0.0.10.0 work with CC3100SDK 1.0.0?