AnsweredAssumed Answered

SPWF04SA SSL CONNECTION ISSUE

Question asked by Viktor Duma on Dec 5, 2017
Latest reply on Dec 7, 2017 by Gerardo Gallucci

Hello!

Using the SPWF04SA with the new 1.1 firmware, we have one site that we can't get to work: www.ssllabs.com.

While we can connect using SOCKON without issue, when we send even the most basic http request, we get back a "400 Bad Request" error from the server. If we send the exact same request using "openssl s_client -connect www.ssllabs.com:443" on a desktop, we get back the data that we expect. Connecting with browsers works but then when trying to send the exact same request they do, the module still gets back bad request.

The commands that we are sending:

AT+S.SOCKON=www.ssllabs.com,443,,ssllabs.com<cr>
AT+S.SOCKW=0,41<cr>
GET / HTTP/1.1<cr><lf>
Host: www.ssllabs.com<cr><lf>
<cr><lf>

If we instead connect to just "ssllabs.com", no "www", we get back the expected "302 Found" response. The certificate we loaded has the subject key ID "68:90:E4:67:A4:A6:53:80:C7:86:66:A4:F1:F7:4B:43:FB:84:BD:6D".

Outcomes