What is SSL,TLS?What does it do?What is the working logic?
SSL (Secure Sockets Layer) and TLS (Transport Layer Security) are protocols used to provide secure communication over the internet. These protocols establish an encrypted connection between devices transmitting information, ensuring privacy and integrity. Their functions include:
1. **Confidentiality**: SSL and TLS encrypt transmitted data to prevent it from being understood by third parties. Data is transmitted in a scrambled format, ensuring that only the intended recipient can understand it.
2. **Integrity**: SSL and TLS ensure that data is not tampered with or altered during transmission. This ensures that data is transmitted accurately without any modifications. 3. **Authentication**: SSL and TLS perform authentication between server and client devices. This allows the recipient device to verify the identity of the sender. This is often achieved through an SSL certificate. The working mechanism of SSL and TLS typically involves the following steps:
1. The client device sends a connection request to the server. 2. The server sends its SSL or TLS certificate to the client.
3. The client verifies the server's SSL or TLS certificate, checking if it is signed by a trusted certificate authority.
4. If the certificate is verified, the client generates a session key and encrypts it using the server's public key.
5. The server decrypts the received encrypted session key using its private key.
6. A secure connection is established between the server and the client, and data transmitted over this connection is encrypted. These steps summarize how SSL and TLS work to provide secure communication.