Problem
When using the SeaLights test listener as a javaagent in WebSphere, it fails to connect to our server with the exception "Cannot find the specified class com.ibm.websphere.ssl.protocol.SSLSocketFactory"
... <Certificate chain received from hostname - xxx.xxx.xxx.xxx --> app.sealights.co failed hostname verification check. Certificate contained *.sealights.co but check expected app.sealights.co>
Solution
This issue can occur when using a JDK from the WebSphere Application Server. See https://www.ibm.com/support/knowledgecenter/en/was_beta_liberty/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/rwlp_trouble.html#rwlp_trouble__ssl01 for more details.
Therefore you should create a file called sl.java.security with the following content
sl.java.security
ssl.SocketFactory.provider= ssl.ServerSocketFactory.provider=
And then add the following parameter to the JVM args of webSphere alongside out javaagent:
-Djava.security.properties=fullPathTo/sl.java.security
Related articles