ALPN
Also called: Application-Layer Protocol Negotiation
Application-Layer Protocol Negotiation is a TLS extension that lets peers agree which application protocol a connection will carry. The client offers protocol identifiers, and the server selects a supported choice. This lets services share a port without guessing the application protocol from later payload bytes.
For example, a client may offer h2 and http/1.1, and the server select h2 for HTTP/2. That selects the application protocol, not the TLS version or the hostname. The selection is part of the handshake; the exact response message depends on the TLS version.
- Read first
- TLS