RFC 6066 Quiz

TLS Extensions

0 / 0

References (URLs)

Scope: These questions test RFC 6066's TLS-extension wire and failure rules. They do not imply that every extension is appropriate for a new deployment or replace certificate validation, endpoint identification, or application authorization.

Q1: Which record-layer behavior follows from this handshake?

Multiple Choice

A TLS 1.2 client offers `truncated_hmac`. The server completes a full handshake but does not include `truncated_hmac` in ServerHello. The selected cipher suite uses HMAC.

**Explanation:** RFC 6066 Section 7 says a server MAY agree by including the extension in ServerHello; only after successful negotiation MUST both sides use 10-byte HMAC tags. B follows that state. A turns an optional offer into a requirement. C ignores server acceptance. D is unsupported because extension absence in a full handshake does not prove resumption.

Q2: What may the client conclude when no stapled status arrives?

Multiple Choice

A client offers `status_request` and requires OCSP validation by local policy. A server with an otherwise acceptable certificate completes the handshake without negotiating the extension or sending CertificateStatus.

**Explanation:** Section 8 lets a server decline to provide CertificateStatus, while Section 11.6 warns that a compromised-key server can pretend not to support the extension. C preserves the unknown status and applies the client's requirement. A invents positive evidence. B turns MAY into MUST. D is a fail-open policy contrary to the premise; RFC 6066 does not make authorization precede required validation.

Q3: Which HostName value is correctly encoded for SNI?

Multiple Choice

A client connects to the internationalized DNS name “bücher.example” and constructs RFC 6066 `server_name`.

**Explanation:** Section 3 defines HostName as an ASCII fully qualified DNS name without a trailing dot and uses A-labels for internationalized names, so B is correct. A violates encoding and dot rules. C is a literal address, which is prohibited. D violates the requirement that ServerNameList contain at most one name of each name_type.

Q4: How must the client handle this max-fragment response?

Multiple Choice

A client requests `max_fragment_length` 2^10. The ServerHello includes the extension but returns 2^11, intending to choose a nearby supported limit.

**Explanation:** Section 4 permits the server to accept by echoing the same value; a different response value requires the client to abort with `illegal_parameter`, so B is correct. A invents server selection. C creates inconsistent record limits. D ignores a malformed negotiation response instead of the specified fatal behavior.

Q5: Which gateway decision follows RFC 6066's name-consistency rule?

Multiple Choice

A gateway receives SNI `agents.example`, selects that virtual host's certificate, and completes TLS. The protected HTTP request then carries authority `billing.example`. The gateway's routing policy assumes the two names are identical.

**Explanation:** Section 11.1 requires an application server that relies on the names being the same to check that the client did not present a different application-protocol name. C performs that check and keeps authorization separate. A omits the required comparison. B misuses a server-routing hint as client identity and permission. D confuses channel protection with semantic equality.

Q6: Which resumption review is correct?

Multiple Choice

A full TLS 1.2 session negotiated `max_fragment_length` 2^10 and `truncated_hmac`. A later ClientHello requests resumption and repeats both offers. The server resumes the session and omits both extensions from ServerHello. The client resets to 2^14 fragments and full HMAC.

**Explanation:** Section 1.1 says that on accepted resumption the server MUST ignore these extensions and send none of them, while the functionality negotiated at original initiation applies to the resumed session. Sections 4 and 7 specifically say both functions last through resumptions, so A is correct. B demands a forbidden echo. C contradicts the client's SHOULD and loses fallback behavior if resumption is denied. D invents unequal lifetime rules.