From 11074d8d246c5d5cb1bfb7835f64eed8070d806d Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Fri, 17 Oct 2014 13:25:17 +0200 Subject: [PATCH] fix for a ssl bug that appear only in java 7. The bug was reported in http://forum.yacy-websuche.de/viewtopic.php?f=23&t=5407&p=30956#p30956 a solution was described in http://teknosrc.com/javax-net-ssl-sslprotocolexception-handshake-alert-unrecognized_name-solved/ which worked for this example given in the yacy forum --- source/net/yacy/yacy.java | 1 + 1 file changed, 1 insertion(+) diff --git a/source/net/yacy/yacy.java b/source/net/yacy/yacy.java index 5a7939f8c..de519a7e6 100644 --- a/source/net/yacy/yacy.java +++ b/source/net/yacy/yacy.java @@ -579,6 +579,7 @@ public final class yacy { public static void main(String args[]) { try { + System.setProperty("jsse.enableSNIExtension", "false"); // fix a ssl problem in Java 1.7, see http://teknosrc.com/javax-net-ssl-sslprotocolexception-handshake-alert-unrecognized_name-solved/ // check assertion status //ClassLoader.getSystemClassLoader().setDefaultAssertionStatus(true);