I have next case: a client has in its trust store only the root certificate. During TLS handshake a server sends its own certificate signed with an intermediate certificate to the client.
Will SLLEngine on client side download the intermediate certificates to verify the server certificate until engine riches the root certificate that it already has in trust store and thus build a chain of trust and validate server identity?
Plese, clarify the behavior of SSLEngine in Java.