SSL protocol sits on top of the transport layer but below application layer in the OSI protocol.
So the SSL handshake happens after the accept() method returned, that is, after the TCP connection is
established.
When SSLSockets are first created, no handshaking is done so that applications may first set their communication preferences: what cipher suites to use, whether the socket should be in client or server mode, etc.The initial handshake on this connection can be initiated in one of three ways:
- Calling startHandshake which explicitly begins handshakes, or
- Any attempt to read or write application data on this socket causes an implicit handshake, or
- A call to getSession tries to set up a session if there is no currently valid session, and an implicit handshake is done.
Posted via email from Progress