We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af50215 + 0788aec commit 187fdb0Copy full SHA for 187fdb0
src/main/java/cn/jpush/api/common/connection/NativeHttpClient.java
@@ -261,7 +261,7 @@ protected void initSSL() {
261
TrustManager[] tmCerts = new javax.net.ssl.TrustManager[1];
262
tmCerts[0] = new SimpleTrustManager();
263
try {
264
- SSLContext sslContext = SSLContext.getInstance("TLSv1.1");
+ SSLContext sslContext = SSLContext.getInstance("TLS");
265
sslContext.init(null, tmCerts, null);
266
HttpsURLConnection.setDefaultSSLSocketFactory(sslContext.getSocketFactory());
267
0 commit comments