CS FundamentalsHardGATE CS · product-company placement
Two HTTPS sites, a.example and b.example, share one IP address and port 443, each with its own certificate. How does the server know which certificate to present?
- A. From the Host header of the first HTTP request on the connection
- B. From the Server Name Indication the client sends in its TLS ClientHello
- C. From the DNS query, which the server sees before the TCP handshake begins
- D. From the client's source port, which browsers pick per site being visited
Correct answer: B. From the Server Name Indication the client sends in its TLS ClientHello
The certificate is sent during the TLS handshake, before any HTTP bytes, so the Host header is not available yet. SNI carries the hostname in the ClientHello so the server can choose. The Host header still selects the virtual host for plain HTTP.
More Computer Networks questions
- A download of a 10,000,000-byte file over HTTP broke after the first 4,000,000 bytes (bytes 0 to 3,999,999) arrived. To resume, which…
- In an SMTP session between two mail servers, in which order are these commands sent? P. DATA Q. RCPT TO R. EHLO S. MAIL FROM T. QUIT
- A system identifies records by a 64-bit hash. Roughly how many random records must be hashed before the chance of at least one collision…
- Alice and Bob run plain Diffie–Hellman with no authentication of the exchanged values. Mallory sits on the path and can modify messages…
- Host H is set as 10.1.5.20 with mask 255.255.0.0, but the network is really split into /24 subnets joined by router R. H pings 10.1.200.7…
- Which SNMP message does an agent send without first being polled, and to which UDP port does it normally go?