Removed catch-all hostname verifier if a cert is present

This commit is contained in:
Galen Abell
2018-11-11 09:47:02 -05:00
parent ad5be385e8
commit 41949b49df

View File

@@ -67,7 +67,6 @@ public class CertUtils {
context.init(new KeyManager[] {}, trustManagers, new SecureRandom());
builder.sslSocketFactory(
context.getSocketFactory(), (X509TrustManager) trustManagers[0]);
builder.hostnameVerifier((a, b) -> true);
}
}
} catch (Exception e) {