admin管理员组文章数量:1530842
目录
- 1.修改JRE中 java.security的TLS禁用策略
- 2.修改微信提供的代码(已解决)
- 3.JDK版本问题
进行微信支付退款测试的时候,在本地一切运行正常,当部署到服务器时,复测就出现问题,通过查找日志发现:
[ERROR][10:10:33] ClientCustomSSL:87 No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
at sun.security.ssl.HandshakeContext.<init>(HandshakeContext.java:171)
at sun.security.ssl.ClientHandshakeContext.<init>(ClientHandshakeContext.java:98)
at sun.security.ssl.TransportContext.kickstart(TransportContext.java:220)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:428)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:395)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:354)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
1.修改JRE中 java.security的TLS禁用策略
看到网上大多数都是这种解决方案,但是我试过了不行(pass)
- 查找 java.security文件
- which java
- ls -lrt /usr/bin/java
- ls -lrt /etc/alternatives/java
- 修改java.security(标注的地方去掉)
2.修改微信提供的代码(已解决)
将标注的地方直接改为null
3.JDK版本问题
重新安装JDK,如果还不行,继续执行步骤1
本文标签: disabledprotocolcipherinappropriatesuites
版权声明:本文标题:微信退款No appropriate protocol (protocol is disabled or cipher suites are inappropriate) 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dianzi/1726296111a1064628.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论