javax.net.ssl.SSLHandshakeException: Received fatal alert: unknown_ca
问题 I have to connect to a server via SSL dual authentication. I have added my own private key plus certificate to a keystore.jks and the self signed certificate of the server to a truststore.jks , both files are copied to /usr/share/tomcat7. The socket factory used by my code is delivered by the following provider: @Singleton public static class SecureSSLSocketFactoryProvider implements Provider<SSLSocketFactory> { private SSLSocketFactory sslSocketFactory; public SecureSSLSocketFactoryProvider(