24 lines
811 B
Java
24 lines
811 B
Java
|
package o;
|
||
|
|
||
|
import java.security.KeyManagementException;
|
||
|
import java.security.NoSuchAlgorithmException;
|
||
|
import javax.net.ssl.SSLContext;
|
||
|
import org.apache.http.conn.ssl.SSLInitializationException;
|
||
|
import org.apache.http.conn.ssl.SSLSocketFactory;
|
||
|
|
||
|
@Deprecated
|
||
|
/* loaded from: classes6.dex */
|
||
|
public final class gkH {
|
||
|
public static SSLContext b() throws SSLInitializationException {
|
||
|
try {
|
||
|
SSLContext sSLContext = SSLContext.getInstance(SSLSocketFactory.TLS);
|
||
|
sSLContext.init(null, null, null);
|
||
|
return sSLContext;
|
||
|
} catch (KeyManagementException e) {
|
||
|
throw new SSLInitializationException(e.getMessage(), e);
|
||
|
} catch (NoSuchAlgorithmException e2) {
|
||
|
throw new SSLInitializationException(e2.getMessage(), e2);
|
||
|
}
|
||
|
}
|
||
|
}
|