vendredi 27 mars 2015

SSL handshaking message


I'm writing a simple SSL client for windows using c++ compiler and I need to understand how to perform Handshaking in SSL protocol. Wiki says that the message should look as follows:



A client sends a ClientHello message specifying the highest TLS protocol version it supports, a random number, a list of suggested cipher suites and suggested compression methods. If the client is attempting to perform a resumed handshake, it may send a session ID.



But it's not clear what is the actual format of the message. For instance, I've established a connection via winsock's sockets and can send and receive plain bytes to and from the server. What should I send first in order to perform handshaking?




Aucun commentaire:

Enregistrer un commentaire