-
Bug
-
Resolution: Done
-
Minor
-
EAP_EWP 5.1.2
-
-
-
-
Documented as Resolved Issue
-
NEW
Running the following code is an alternative way to set the keystore/truststore in a remoting client:
KeyStore ksTrust = KeyStore.getInstance("JKS"); ksTrust.load(new FileInputStream("testTrust"), passphrase); TrustManagerFactory tmf = TrustManagerFactory.getInstance("SunX509"); tmf.init(ksTrust); SSLContext sslContext = SSLContext.getInstance("TLS"); sslContext.init(null, tmf.getTrustManagers(), null); HttpsURLConnection.setDefaultSSLSocketFactory(sslContext.getSocketFactory());
When this code is added, Remoting should not try to create its own SSLSocketFactory. Currently there is no way to tell Remoting to not try. This causes a confusing ERROR message:
Error creating SSL Socket Factory for client invoker: Error initializing socket factory SSL context: Can not find truststore url.
After this message is logged, the client still works because it falls back to the default SSLSocketFactory (that was already set).
- blocks
-
JBPAPP-9494 [JBossWS] Release and upgrade JBossWS Native for EAP 5.2.0
- Closed