Scope: RFC 2818 is an Informational RFC that is now obsolete, with RFC 9110 listed as its successor. Questions that cite RFC 2818 ask what that historical document says; they do not present its certificate-matching details as current general guidance.
An A2A client opens HTTPS to a gateway, whose certificate identity matches the URI. The gateway terminates TLS and forwards the HTTP request to a backend over an unprotected internal connection. The request also carries an access token.
A client dereferences https://agent.example/card. DNS returns 203.0.113.10, and the certificate contains a dNSName of agent.example. The client has no external information identifying one expected certificate. A reviewer proposes comparing the certificate only with the resolved IP address.
A client connects to https://192.0.2.10/. The certificate has a dNSName containing the text 192.0.2.10, but no iPAddress subjectAltName.
The URI host is api.prod.agents.example. A certificate contains the dNSName *.agents.example. Evaluate only the matching rule written in RFC 2818, not current certificate-service guidance.
* matches a single domain-name component or component fragment. Its example says *.a.com matches foo.a.com, but not bar.foo.a.com.
A: This incorrectly lets one wildcard consume multiple components.
B: Correct for the rule in RFC 2818. *.agents.example can cover one label before agents.example, not two.
C: Certificate-path trust and reference-identity matching are separate checks.
D: RFC 2818 explicitly describes wildcard matching; the reason for rejection here is depth, not a categorical ban.
An HTTP response has no Content-Length; connection close is therefore the only end-of-body signal. The TCP connection ends before the client receives a valid TLS closure alert.
Content-Length, the client cannot distinguish an intended end from attacker-induced truncation, must treat the close as an error, and must not reuse that session.
A: The unauthenticated close is exactly the ambiguous signal the section warns about.
B: Correct. It preserves both the HTTP truncation warning and the TLS session-reuse prohibition.
C: Server authentication does not prove that an unbounded response reached its intended end.
D: Resuming the prematurely closed session violates the explicit no-reuse rule and cannot retroactively establish the body boundary.
A response declares a valid Content-Length, and the client receives exactly that many body bytes. The connection then ends without a valid TLS closure alert.
An agent receives an unsigned discovery message containing https://attacker.example/card. It fetches the URL over TLS; the certificate validly identifies attacker.example. The fetched Card claims authority over a protected A2A service.