-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Done
-
Affects Version/s: EAP_EWP 5.1.2
-
Fix Version/s: EAP_EWP 5.2.0 ER2
-
Component/s: Remoting, Web Services
-
Labels:
-
Steps to Reproduce:
-
Workaround Description:
-
Release Notes Text:
-
Release Notes Docs Status:Documented as Resolved Issue
-
Docs QE Status: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
-
- cloned to
-
JBREM-1306 Remoting tries to create SSLSocketFactory even when not desired
-
- Resolved
-