2 Replies Latest reply on Jan 4, 2019 8:55 AM by Chuck Davis

    ssl connection

    Chuck Davis Newbie

      My program works fine at port 8080 but when I connect to 8443 with debugging turned on I receive the following exception at the end of all the handshake verbiage:


      javax.net.ssl|DEBUG|03|Finalizer|2019-01-03 05:20:30.778 PST|SSLSocketImpl.java:473|duplex close of SSLSocket

      javax.net.ssl|WARNING|03|Finalizer|2019-01-03 05:20:30.780 PST|SSLSocketImpl.java:494|SSLSocket duplex close failed (

      "throwable" : {

        java.net.SocketException: Socket is not connected

              at java.base/java.net.Socket.shutdownOutput(Socket.java:1553)

              at java.base/sun.security.ssl.BaseSSLSocketImpl.shutdownOutput(BaseSSLSocketImpl.java:232)

              at java.base/sun.security.ssl.SSLSocketImpl.duplexCloseOutput(SSLSocketImpl.java:561)

              at java.base/sun.security.ssl.SSLSocketImpl.close(SSLSocketImpl.java:479)

              at java.base/sun.security.ssl.BaseSSLSocketImpl.finalize(BaseSSLSocketImpl.java:275)

              at java.base/java.lang.System$2.invokeFinalize(System.java:2117)

              at java.base/java.lang.ref.Finalizer.runFinalizer(Finalizer.java:87)

              at java.base/java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:171)}



      I don't understand why the socket is being closed ??   There are no other exceptions thrown during the handshake.  I've configured my certificates per directions in "Java EE 7 Development with Wildfly" by Cmil, Matloka & Marchioni.

      Subsequent to this debug exception the program works flawlessly but I'm assuming it falls back to unencrypted communications since the socket is not connected?

      I'm using Wildfly 12.

      Does anybody here know ssl well enough to tell me why at the very end the handshake fails like this but the program continues to function?

      Thanks for any information.