spirilis 1,265 Posted February 21, 2015 Share Posted February 21, 2015 What are you using to connect? What software gives that kind of error? FYI, connecting without cert validation does kick back an error, it's just a non-fatal one. Sent from my Galaxy Note II with Tapatalk 4 Quote Link to post Share on other sites
Yellamoo 0 Posted February 21, 2015 Share Posted February 21, 2015 Hi, Im just getting that error on the serial console of Energia. I am using the first code example above, just chaning the address to google.com/.co.uk.. Are there any sslConnect debugs I can enable to try get more information? Thanks Quote Link to post Share on other sites
wayfarer 0 Posted February 24, 2015 Share Posted February 24, 2015 Hi spirilis, last days I was trying very hard to send a HTTP REST API call to a server via https. The GET request was well formated and worked well from my PC. But when I sent the same request from my C3200 launchpad I got a "bad request" error 400 after a successful connect. I started with your example code and adaped it with my host and URL. Finally I found out that it only works when I split my URL with several parameters, in multiple client.print commands. It seams that there is someting wrong with the length of a URL. Maybe the URL will be trucated after an certain amount characters because I iterated the number of parameters. With only two parameters it worked (server replies with "wrong command") but when I added the 3rd parameter I've got an error 400. Can anybody have a look at this? wayfarer Quote Link to post Share on other sites
spirilis 1,265 Posted February 24, 2015 Share Posted February 24, 2015 Hi spirilis, last days I was trying very hard to send a HTTP REST API call to a server via https. The GET request was well formated and worked well from my PC. But when I sent the same request from my C3200 launchpad I got a "bad request" error 400 after a successful connect. I started with your example code and adaped it with my host and URL. Finally I found out that it only works when I split my URL with several parameters, in multiple client.print commands. It seams that there is someting wrong with the length of a URL. Maybe the URL will be trucated after an certain amount characters because I iterated the number of parameters. With only two parameters it worked (server replies with "wrong command") but when I added the 3rd parameter I've got an error 400. Can anybody have a look at this? wayfarer Sure, please provide a code example that I can work with for debugging. Sent from my Galaxy Note II with Tapatalk 4 Quote Link to post Share on other sites
wayfarer 0 Posted February 26, 2015 Share Posted February 26, 2015 Hi Eric, I provided you some example code at github https://github.com/energia/Energia/pull/545#issuecomment-75764573 Way Quote Link to post Share on other sites
HarisAhmed 0 Posted December 29, 2015 Share Posted December 29, 2015 HI, I want to establish a secure connection to a server using SSL\TLS using CC3200. Can anybody help me on this??? If anybody has soure code for this on Energia kindly share it. Thankyou Quote Link to post Share on other sites
HarisAhmed 0 Posted January 18, 2016 Share Posted January 18, 2016 I have successfully established a secure connection,but I want to know that to send and receive data after establishing a secure connection if I use .read() and .write() commands, will the data be in encrypted form or it will need encryption??? Quote Link to post Share on other sites
HarisAhmed 0 Posted January 18, 2016 Share Posted January 18, 2016 I have successfully established a secure connection,but I want to know that to send and receive data after establishing a secure connection if I use .read() and .write() commands, will the data be in encrypted form or it will need encryption??? Quote Link to post Share on other sites
spirilis 1,265 Posted January 18, 2016 Share Posted January 18, 2016 Yes you can use .read, .write, .readBytes, .print, .println etc (WiFiClient extends the Stream class, which provides those various primitives) Anything you read or write over an .sslConnect() established session will be encrypted. Fmilburn and energia 2 Quote Link to post Share on other sites
HarisAhmed 0 Posted January 19, 2016 Share Posted January 19, 2016 @spirilis Thank you so much. Quote Link to post Share on other sites
HarisAhmed 0 Posted January 19, 2016 Share Posted January 19, 2016 I want to connect to a local server through SSL,I am currently using XAMPP with my self signed certificate but the CC3200 launchpad is not connecting with the local server,what might be the problem?I saw the certificate generated by XAMPP and it is of version 1,it is the problem of the version?If so kindly suggest me a local server for my apllication. Thank You. Quote Link to post Share on other sites
rush9r 0 Posted February 20, 2017 Share Posted February 20, 2017 hi spirilis, you really did a great job with your SSLconnect-Function. I 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.