I bought ssl certificate and i got .cert file which i imported in jks file using keytool
I configure camel like this
<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>
and i used this like :-
<route id="marketDataMessage"> <from uri="direct:uimessages" /> <to uri="websocket://0.0.0.0:8443/ws/mdata?sendToAll=true&sslContextParameters=#sslContextParameters" /> </route>
but when i am trying to open websocket i am getting this.
Unsupported protocol The client and server don't support a common SSL protocol version or cipher suite.
any help would be appreciated
This worked finally . it didn’t have private key so it was showing this error. I loaded private key using this
and it worked