1 (edited by rmartin92 2018-04-15 07:48:10)

Topic: Server Disconnect after TLS Client Hello KEIL MDK - Data dump included

We are using wolfSSL in a KEIL MDK 5 environment.  We have the KEIL BSD sockets working have tied the wofSSL 3.1.40 into the socket layer.  Build options included for a bare bones operation.  Included is our config files created by the MDK build. 
Client configurations is TLSClient23Build.
Our test was to connect to google.com on port 443.  We are not attempting to verify the server with a certificate and are not creating a private key at this point.  Just a simple connect.   The client connects to the server and CLIENT_HELLO is sent.  The server responds with a small message and then issues a close.  We have included a log of the transaction showing the KEIL TCP and the wolfssl logging.

Questions:
1.  Why is wolfSSL trying to connect before we issue the wolfSSL_connect?
2.  Is there anything in the client hello that would cause the server to close our connection?

Post's attachments

Trace1.txt 8.03 kb, 3 downloads since 2018-04-13 

You don't have the permssions to download the attachments of this post.

Share

Re: Server Disconnect after TLS Client Hello KEIL MDK - Data dump included

Adding config file that contains 2 files in one.
Config and config-wolfLib.h

Post's attachments

config.h.txt 1.94 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Share

Re: Server Disconnect after TLS Client Hello KEIL MDK - Data dump included

Can someone help me with the TLS HELLO_CLIENT?  Here is the messages sent to the server.  The server is disconnecting after receiving this data.

04/13/18-19:10:07:263 IP         Debug    TSK: ETHPPP  wolfssl_send: return code: 70
04/13/18-19:10:07:272 IP         Hex      TSK: ETHPPP  Data:
    HEX: 70
    16  03  03  00  41  01  00  00  3d  03  03  3a  59  9e  b6  39      ....A...=..:Y..9
    c2  1c  da  65  79  9f  d3  31  aa  34  c0  13  ee  88  1a  28      ...ey..1.4.....(
    5c  f7  5e  0b  80  5a  20  18  88  f1  4e  00  00  0a  00  6b      \.^..Z ...N....k
    00  67  00  39  00  33  00  16  01  00  00  0a  00  0d  00  06      .g.9.3..........
    00  04  04  01  02  01                                              ......
04/13/18-19:10:07:383 IP         Debug    TSK: ETHPPP  wolfSSL: Shrinking output buffer

04/13/18-19:10:07:383 IP         Debug    TSK: ETHPPP  wolfSSL: connect state: CLIENT_HELLO_SENT

Share

Re: Server Disconnect after TLS Client Hello KEIL MDK - Data dump included

I analyzed on of the TLS packets for the Client HELLO
handshake     16     
TLSV33         03 03     
Length        00 41     
Clienthello       01     
length         00 00 3d 
ClientVer             03 03   
random            5b b7 51 b3 + bc c8 85 af 03 0d 63 c3 1c c4 3e 60 e6 39 88 55 5e
             f9 36 01 02 7f 3e a7 06 40 2f 86
SessionLen    00
CSS-Len           00 0a
CSS                  00 6b 00 67 00 39 00 33 00 16
Comp-len            01
comp-meth    00 
ext-len        00 0a
ext-id               000d  0006 0004 0401 0201

Not sure which value is causing the server to disconnect.

Share