forked from Archives/Athou_commafeed
fix for "handshake alert: unrecognized_name" (fix #685)
This commit is contained in:
@@ -58,6 +58,9 @@ public class HttpGetter {
|
||||
|
||||
private static SSLContext SSL_CONTEXT = null;
|
||||
static {
|
||||
// fix for "handshake alert: unrecognized_name"
|
||||
System.setProperty("jsse.enableSNIExtension", "false");
|
||||
|
||||
try {
|
||||
SSL_CONTEXT = SSLContext.getInstance("TLS");
|
||||
SSL_CONTEXT.init(new KeyManager[0], new TrustManager[] { new DefaultTrustManager() }, new SecureRandom());
|
||||
|
||||
Reference in New Issue
Block a user