I'm having trouble moving from remote+http to remote+https. I'm using a basic java application and the default applicationSSC that comes with the wildfly installation. I'm using wildfly 26. I'm using the SecuredEJB.java from the wildfly security examples but made it open (unsecured).
Note that my application works using the remote+http protocol (using the same user in my InitialContext). I'm using the org.wildfly.naming.client.WildFlyInitialContextFactory in my application for the initial context factory.
So, here is what I've done to use the remote+https protocol...I've first created the http-connector under the jboss:domain:remoting section:
<http-connector name="https-remoting-connector" connector-ref="https" sasl-authentication-factory="application-sasl-authentication"/>
I don't have to create a new security context because I'm using the default one that came with wildfly (i.e. applicationSSC), so that part for SSL should still work.
I start my java application and allow it to trust the default keystore (application.keystore) using the VM arguments:
-Djavax.net.ssl.keyStore=${CLIENT_CERT} -Djavax.net.ssl.keyStorePassword=password -Djavax.net.ssl.trustStore=${CLIENT_CERT} -Djavax.net.ssl.trustStorePassword=password
Connection is made, the principal recognized, certificates verified, but the EJB call that is made, it never returns unless I terminate the server. It just hangs on that EJB call. Once I stop the server control is returned to my application.
Is there something missing in my configuration or some additional setup I need in the InitialContext? All I'm doing in setting up the context is the following:
jndiProperties.put(Context.INITIAL_CONTEXT_FACTORY, "org.wildfly.naming.client.WildFlyInitialContextFactory");
jndiProperties.put(Context.PROVIDER_URL, "remote+
https://localhost:8443");
jndiProperties.put(Context.SECURITY_PRINCIPAL, "USERNAME");
jndiProperties.put(Context.SECURITY_CREDENTIALS, "password");
Also is there some additional trace that I can turn on to see what more is happening on the server and why it is hanging?
I'm providing both my standalone xml file and the logging output using the TRACE statements I've enabled.