ERR_SSL_VERSION_OR_CIPHER_MISMATCH 在骆驼 Jetty websockets 中
ERR_SSL_VERSION_OR_CIPHER_MISMATCH In camel Jetty websockets
我购买了 ssl 证书并获得了 .cert 文件,我使用 keytool 将其导入到 jks 文件中
我是这样配置camel的
<camel:sslContextParameters
id="sslContextParameters">
<camel:keyManagers
keyPassword="asdf123456">
<camel:keyStore
resource="keystore12.jks"
password="Removed"/>
</camel:keyManagers>
<camel:trustManagers>
<camel:keyStore
resource="keystore12.jks"
password="Removd"/>
</camel:trustManagers>
<camel:secureSocketProtocols>
<camel:secureSocketProtocol>TLSv1.2</camel:secureSocketProtocol>
</camel:secureSocketProtocols>
我这样使用:-
<route id="marketDataMessage">
<from uri="direct:uimessages" />
<to uri="websocket://0.0.0.0:8443/ws/mdata?sendToAll=true&sslContextParameters=#sslContextParameters" />
</route>
但是当我尝试打开 websocket 时,我得到了这个。
ERR_SSL_VERSION_OR_CIPHER_MISMATCH
Unsupported protocol
The client and server don't support a common SSL protocol version or cipher suite.
任何帮助将不胜感激
终于成功了。它没有私钥,因此显示此错误。我使用这个
加载了私钥
https://www.wowza.com/docs/how-to-import-an-existing-ssl-certificate-and-private-key
成功了
我购买了 ssl 证书并获得了 .cert 文件,我使用 keytool 将其导入到 jks 文件中
我是这样配置camel的
<camel:sslContextParameters
id="sslContextParameters">
<camel:keyManagers
keyPassword="asdf123456">
<camel:keyStore
resource="keystore12.jks"
password="Removed"/>
</camel:keyManagers>
<camel:trustManagers>
<camel:keyStore
resource="keystore12.jks"
password="Removd"/>
</camel:trustManagers>
<camel:secureSocketProtocols>
<camel:secureSocketProtocol>TLSv1.2</camel:secureSocketProtocol>
</camel:secureSocketProtocols>
我这样使用:-
<route id="marketDataMessage">
<from uri="direct:uimessages" />
<to uri="websocket://0.0.0.0:8443/ws/mdata?sendToAll=true&sslContextParameters=#sslContextParameters" />
</route>
但是当我尝试打开 websocket 时,我得到了这个。
ERR_SSL_VERSION_OR_CIPHER_MISMATCH
Unsupported protocol
The client and server don't support a common SSL protocol version or cipher suite.
任何帮助将不胜感激
终于成功了。它没有私钥,因此显示此错误。我使用这个
加载了私钥https://www.wowza.com/docs/how-to-import-an-existing-ssl-certificate-and-private-key
成功了