Java SSL woes

So you’ve written some code, to connect to something by SSL…and you get an exception when you connect… well I find the best thing todo is enable extra debug for ssl i.e.

add to java command line arg

-Djavax.net.debug=ssl

or in code you can add

System.setProperty(“javax.net.debug”,”ssl”);

And now you will have debug output telling you, hopefully, exactly why ssl isn’t behaving !

Show your support

Clapping shows how much you appreciated Peter Richardson’s story.