When a client initiates a secure session to a "wss" WebSocket server endpoint, the session#isSecure() method always returns false, although it's in fact secure.
The server side counterpart is working fine. (Wildfly 11, it's Tyrus, too).
I am initiating the SSL context with:
SslEngineConfigurator sslEngineConfigurator = new SslEngineConfigurator(getSSLContext());
client.getProperties().put(ClientProperties.SSL_ENGINE_CONFIGURATOR, sslEngineConfigurator);
I noticed the same. I am connecting to an API service endpoint. Looking at the communication going back and forth between server and Tyrus client in Wireshark, I can clearly see that traffic is encrypted.
When a client initiates a secure session to a "wss" WebSocket server endpoint, the session#isSecure() method always returns false, although it's in fact secure.
The server side counterpart is working fine. (Wildfly 11, it's Tyrus, too).
I am initiating the SSL context with: