Java SSLSocket: How to send full server cert chain?
问题 When I create an SSLServerSocket in Java 7 the server correctly uses my server certificate and key. The certificate was issued by a sub-ca of a ca. Therefore the complete chain from the root cert to the server cert has four certificates. The complete chain is present in the keystore/truststore. However when a client connects the server always sends only the server certificate itself. This also applies to Java based web servers like Jetty. Because most clients have only the root ca certificate