EvilZone

General Tech => Networking => : Duko April 28, 2015, 10:55:56 PM

: Secure Socket Layer (SSL)
: Duko April 28, 2015, 10:55:56 PM
##########################################################################
#The following information was not written by me. The networking section of the forum had little information so i #tought I should post some information.
##########################################################################

Credit goes to ----->  http://www.siteforinfotech.com/2012/11/secure-socket-layer-ssl.html (http://www.siteforinfotech.com/2012/11/secure-socket-layer-ssl.html)

Secure Socket Layer is a security protocol and the primary goal of the SSL protocol is to provide a private channel between communicating applications, which ensures privacy of data, authentication of the partners, and integrity. The Secure Socket Layer (SSL) technology was used for the websites or web applications which need more security.


(http://www-01.ibm.com/support/knowledgecenter/api/content/nl/pt-pt/SSFKSJ_7.5.0/com.ibm.mq.sec.doc/q009930a.gif)

Secure Socket Layer (SSL) is composed of two layers:An SSL session is initiated as follows:The Secure Socket Layer (SSL) Protocol addresses the following security issues:Secure Socket Layer (SSL) ProtocolThe SSL protocol is located at the top of the transport layer. SSL is also a layered protocol itself. It simply takes the data from the application layer, re-formats it, and transmits it to the transport layer. SSL handles a message as follows.

The sender performs the following tasks:The receiver performs the following tasks:An SSL session works in different states. These states are session and connection states. The SSL handshake protocol coordinates the states of the client and the server. In addition, there are read and write states defined to coordinate the encryption according to the change Cipher Spec messages.

##################################
Change Cipher Spec Protocol
##################################

The change Cipher Spec protocol is responsible for sending change Cipher Spec messages. At any time, the client can request to change current cryptographic parameters such as the handshake key exchange. Following the change Cipher Spec notification, the client sends a handshake key exchange and if available, certificate verify messages, and the server sends a change Cipher Spec message after processing the key exchange message. After that, the newly agreed keys will be used until the next change Cipher Spec request. The change Cipher Spec message is sent after the hello messages during the negotiation.

############################
SSL handshake protocol
############################
The SSL handshake protocol allows the client and server to determine the required parameters for and SSL connection such as protocol version, cryptographic algorithms, optional client or server authentication, and public key encryption methods to generate shared secrets. During this process, all handshake messages are forwarded to the SSL record layer to be encapsulated into special SSL messages.


Figure below also illustrates an SSL handshake process.

(http://1.bp.blogspot.com/-G4QOebNJmaQ/ULcuV4XfvqI/AAAAAAAAAWM/umgBEhlUVdk/s400/ssl_handshake.JPG)



#######################
SSL record protocol
#######################

After the master key has been determined, the client and server can use it to encrypt application data. The SSL record protocol specifies a format for these messages in general, they include a message digest ensure that they have not been altered and the whole message is encrypted using a symmetric cipher.