Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

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

Michael Peter Christen11074d8d246c
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);