# AWS Secure Sockets Layer (SSL) and Transport Layer Security (TLS) work?

AWS Secure Sockets Layer (SSL) and Transport Layer Security (TLS) are cryptographic protocols used to establish an encrypted connection between two computers over the internet. When the connection is established, the data sent between the two computers is encrypted for privacy, integrity, and authentication.&#x20;

When a secure connection is established, the protocol is negotiated between the two computers to determine which version of the protocol to use and the encryption algorithms to be used. Once the protocol is agreed upon, the connection is established using a handshake process.&#x20;

During the handshake, each computer sends a digital certificate to the other computer to authenticate the identity of the other computer.&#x20;

After the handshake is complete, the encryption keys are exchanged and the secure connection is established. The data is then encrypted using the agreed-upon encryption algorithms and sent over the secure connection.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.songer.pro/interviewing/aws/general/how-does-aws-secure-sockets-layer-ssl-and-transport-layer-security-tls-work.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
