HOW DOES SSL WORK?

1)A client asks for a connection to the server.

2)The server listens to the client request.

3)The server sends it's digital certificate to the client to authenticate
it self along with it's public key.

4)The client verifies the servers authentication.

5)If authenticated it creates a random session key and encrypts it with the server's public key.

6)Server decrypts session key using it's private key and establishes a secure session.

7) Optionally authenticate the client to the server.

SECURE SOCKET LAYER DIAGRAM