编程语言
首页 > 编程语言> > java-没有共同的Mule密码套件

java-没有共同的Mule密码套件

作者:互联网

我刚刚升级到Mule 3.7,并收到此错误.我正在使用与3.5上相同的密钥库文件.我没有更改tls-default.conf中的任何内容.

ERROR 2016-04-04 05:55:25,450 [[NEWSI].http.request.dispatch.8443.01 org.mule.exception.DefaultSystemExceptionStrategy: Caught exception in Exception Strategy: no cipher suites in common
javax.net.ssl.SSLHandshakeException: no cipher suites in common
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) ~[?:1.8.0_77]
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949) ~[?:1.8.0_77]
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302) ~[?:1.8.0_77]
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:292) ~[?:1.8.0_77]
    at sun.security.ssl.ServerHandshaker.chooseCipherSuite(ServerHandshaker.java:1035) ~[?:1.8.0_77]
    at sun.security.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:738) ~[?:1.8.0_77]
    at sun.security.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:221) ~[?:1.8.0_77]
    at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979) ~[?:1.8.0_77]
    at sun.security.ssl.Handshaker.process_record(Handshaker.java:914) ~[?:1.8.0_77]
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062) ~[?:1.8.0_77]
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) ~[?:1.8.0_77]
    at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:928) ~[?:1.8.0_77]
    at sun.security.ssl.AppInputStream.read(AppInputStream.java:105) ~[?:1.8.0_77]
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) ~[?:1.8.0_77]
    at java.io.BufferedInputStream.read(BufferedInputStream.java:265) ~[?:1.8.0_77]
    at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78) ~[commons-httpclient-3.1.jar:?]
    at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106) ~[commons-httpclient-3.1.jar:?]
    at org.mule.transport.http.HttpServerConnection.readLine(HttpServerConnection.java:245) ~[mule-transport-http-3.7.0.jar:3.7.0]
    at org.mule.transport.http.HttpServerConnection.getRequestLine(HttpServerConnection.java:557) ~[mule-transport-http-3.7.0.jar:3.7.0]
    at org.mule.transport.http.HttpRequestDispatcherWork.run(HttpRequestDispatcherWork.java:67) ~[mule-transport-http-3.7.0.jar:3.7.0]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_77]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_77]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_77]

这是我在mule-config.xml中的httpsConnector定义

<https:connector name="httpsConnector">
    <https:tls-client path="keystore.jks" storePassword="1234"/>
    <https:tls-key-store path="keystore.jks" keyPassword="1234" storePassword="1234"/>
    <https:tls-server path="keystore.jks" storePassword="1234"/>
</https:connector>

任何帮助表示赞赏

解决方法:

尝试使用Vm参数进行调试.这样您就可以获得更好的主意.
您可以使用以下参数.

-Djavax.net.debug=all
-Djavax.net.debug=ssl

如果仍不确定丢失的内容,请在以下URL中粘贴主机名,它将为您提供尝试连接的主机所使用的密码套件

https://www.ssllabs.com/

标签:mule,https,keystore,java
来源: https://codeday.me/bug/20191118/2031294.html