Interview Prep/Networking/HTTP, TLS & Certificates

What is SNI?

BeginnerConceptHTTP, TLS & Certificates
Answer

Server Name Indication is a TLS extension in the ClientHello containing the hostname the client wants, so one IP and port can serve many certificates. Without it a server would not know which cert to present.

curl --resolve app.example.com:443:203.0.113.10 https://app.example.com
openssl s_client -connect 203.0.113.10:443 -servername app.example.com

Encrypted Client Hello (ECH) hides SNI from observers.

All Networking questions Roadmap: Networking for DevOps

More on HTTP, TLS & Certificates