stepanb 0 Posted December 17, 2015 Share Posted December 17, 2015 Hi, I tried to use sslConnect to communicate with Azure Event Hub. Host for endpoint is stepanb-eh.servicebus.windows.net and I can't connect. If I use same code with another server for example www.google.com I can connect. Only difference I see is length of URL. Any hints? Hardware: CC3200 Lanchpad with latest firmware Stepan Quote Link to post Share on other sites
spirilis 1,265 Posted December 17, 2015 Share Posted December 17, 2015 Does the Azure Event Hub validate the client-side certificate? That could be a problem since Energia doesn't exactly expose an API for users to load their own client cert. So the CC3200 uses whatever default client cert it comes with I think. Quote Link to post Share on other sites
stepanb 0 Posted December 18, 2015 Author Share Posted December 18, 2015 Not sure about it but it works with ESP8266 using Arduino IDE. I check Azure Event Hub documentation. Quote Link to post Share on other sites
stepanb 0 Posted January 9, 2016 Author Share Posted January 9, 2016 Does the Azure Event Hub validate the client-side certificate? That could be a problem since Energia doesn't exactly expose an API for users to load their own client cert. So the CC3200 uses whatever default client cert it comes with I think. Hi, there is no client-side certificate validation. I use it for example with ESP8266 and Arduino IDE and it works with no problem. Quote Link to post Share on other sites
spirilis 1,265 Posted January 9, 2016 Share Posted January 9, 2016 Hi, there is no client-side certificate validation. I use it for example with ESP8266 and Arduino IDE and it works with no problem. Can you provide your sketch to test & compare? Quote Link to post Share on other sites
stepanb 0 Posted January 9, 2016 Author Share Posted January 9, 2016 Can you provide your sketch to test & compare? Code is in ZIP archive http://1drv.ms/1ZTPs3t Correct response should be "Unauthorized" There is fake security key. Rest of code is real. Quote Link to post Share on other sites
HarisAhmed 0 Posted January 16, 2016 Share Posted January 16, 2016 Does anybody has the library for CC3200 which supports SSL?? Quote Link to post Share on other sites
spirilis 1,265 Posted February 6, 2016 Share Posted February 6, 2016 Code is in ZIP archive http://1drv.ms/1ZTPs3t Correct response should be "Unauthorized" There is fake security key. Rest of code is real. FYI- A bit late getting back to this, but I've confirmed on a Tiva-C TM4C123G LaunchPad with CC3100 that changing your client.connect(HOST, 443) to client.sslConnect(HOST, 443) results in connection failure. Will have to dive deeper to see if I can find out anything regarding "why". Quote Link to post Share on other sites
spirilis 1,265 Posted February 6, 2016 Share Posted February 6, 2016 FYI- A bit late getting back to this, but I've confirmed on a Tiva-C TM4C123G LaunchPad with CC3100 that changing your client.connect(HOST, 443) to client.sslConnect(HOST, 443) results in connection failure. Will have to dive deeper to see if I can find out anything regarding "why". Error from the SimpleLink WiFi is -208. #define SL_ESEC_SOCKET_ERROR_E (-208) /* error state on socket */ In contrast, www.ti.com:443 works fine (connects at least) with sslConnect(). Very odd! Quote Link to post Share on other sites
offbeatmammal 0 Posted February 9, 2016 Share Posted February 9, 2016 Did anyone ever get to the root of this? @@stepanb I've tried your code as-is (just replaced my event hub details) and no luck Could it possibly be the version, key size or CA of the certificate - causing the CC3200 SSL library problems? SHA-256 with RSA Encryption ( 1.2.840.113549.1.1.11 ) [edit, adding link to my other post about this just to help me find it] Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.