mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
@@ -58,9 +58,6 @@ public class HttpGetter {
|
|||||||
|
|
||||||
private static SSLContext SSL_CONTEXT = null;
|
private static SSLContext SSL_CONTEXT = null;
|
||||||
static {
|
static {
|
||||||
// fix for "handshake alert: unrecognized_name"
|
|
||||||
System.setProperty("jsse.enableSNIExtension", "false");
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
SSL_CONTEXT = SSLContext.getInstance("TLS");
|
SSL_CONTEXT = SSLContext.getInstance("TLS");
|
||||||
SSL_CONTEXT.init(new KeyManager[0], new TrustManager[] { new DefaultTrustManager() }, new SecureRandom());
|
SSL_CONTEXT.init(new KeyManager[0], new TrustManager[] { new DefaultTrustManager() }, new SecureRandom());
|
||||||
|
|||||||
Reference in New Issue
Block a user