From c1c66e940e54ca63fc7358897522eb9eee619aae Mon Sep 17 00:00:00 2001 From: Missionary <37208622+missionOdd@users.noreply.github.com> Date: Sat, 22 Aug 2020 16:56:57 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20#1724=20=E5=BE=AE=E4=BF=A1=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E8=AF=81=E4=B9=A6=E5=88=9D=E5=A7=8B=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=8E=BB=E6=8E=89=E4=B8=8D=E6=8E=A8=E8=8D=90=E7=9A=84?= =?UTF-8?q?TLSv1=E5=8D=8F=E8=AE=AE=EF=BC=8C=E8=A7=A3=E5=86=B3=E9=80=80?= =?UTF-8?q?=E6=AC=BE=E6=8E=A5=E5=8F=A3=E6=8A=A5No=20appropriate=20protocol?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wxpay/service/impl/WxPayServiceApacheHttpImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.java index 7923c4723e..aadb051410 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.java @@ -27,7 +27,6 @@ import org.apache.http.util.EntityUtils; import javax.net.ssl.SSLContext; -import java.math.BigInteger; import java.net.URI; import java.nio.charset.StandardCharsets; @@ -262,7 +261,7 @@ private void initSSLContext(HttpClientBuilder httpClientBuilder) throws WxPayExc } SSLConnectionSocketFactory connectionSocketFactory = new SSLConnectionSocketFactory(sslContext, - new String[]{"TLSv1"}, null, new DefaultHostnameVerifier()); + new DefaultHostnameVerifier()); httpClientBuilder.setSSLSocketFactory(connectionSocketFactory); }