How to make Java 6, which fails SSL connection with “SSL peer shut down incorrectly”, succeed like Java 7?
Bruno’s answer was the correct one in the end. This is most easily controlled by the https.protocols system property. This is how you are able to control what the factory method returns. Set to “TLSv1” for example. It seems that in the debug log for Java 6 the request is send in SSLv2 format. main, … Read more