Client Hello

I have managed to set up basic c++ and boost environment as in the previous post. I found in the default compiler setting, c++11 was not enabled thus failing to compile boost’s asio sample code. I just needed a compiler flag "-std=c++11".

I still haven’t tried OpenSSL. I’ll try it once I learned the basic.

Anyway, I just wanted to start something with my code. The first step in a TLS session is to make a TCP connection on port 443 and send “Client Hello” to the server.

After struggling with WireShark and RFC 5246, I could make a valid ClientHello and got a reply with “Server Hello”. It seems there are some requirements in cipher suites. If Client Hello is missing some, you get an Alert instead of Server Hello.

Leave a Reply

Your email address will not be published. Required fields are marked *