Hi all,
So now I can connect to www.google.com:443 after flashing certificate file to CC3100's sFlash (I export EquifaxSecureCA certificate from Firefox, then use openssl to convert to .der format and use FS API to write .der file to sFlash).
Next step, I want to connect to www.meethue.com/api/nupnp:443. Using the same way as for connecting to google.com, I can export and write certificate for that site to CC3100's sFlash.
In Firefox browser I can see that that meethue.com site uses TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256.
Problem is: I don't know which value I should set for SL_SO_SECMETHOD and SL_SO_SECURE_MASK. I tried several combinations and always got error connecting to that site. The closest option to TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 seems to be SL_SEC_MASK_TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA but this also gave error -456. I tried to use default value by not setting SL_SO_SECMETHOD & SL_SO_SECURE_MASK and the error was also -456. Also tried to use the one that use for connecting to google.com and got the same error.
I also tried to change method to SL_SO_SEC_METHOD_SSLV3, SL_SO_SEC_METHOD_TLSV1, SL_SO_SEC_METHOD_SSLv3_TLSV1_2.
Has any one had any experience on this? Is TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 supported by CC3100? Which options I should use in this case?
I know what -456 error code is, but that's not clear enough. Bad file? Or bad combination with method & cipher? ...
#define SL_ESECBADCAFILE (-456) /* error secure level bad CA file */
Thanks,
Viet Hoang.