camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-6433) Invalid KeyStore format error is generated using camel websocket secure on osgi platform
Date Thu, 28 Apr 2016 13:54:12 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-6433.
--------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: 2.17.1)

There were a bunch of changes so pushing this to master for know

> Invalid KeyStore format error is generated using camel websocket secure on osgi platform
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-6433
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6433
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-mina2, camel-websocket, osgi
>            Reporter: Charles Moulliard
>            Assignee: Claus Ibsen
>             Fix For: 2.18.0
>
>         Attachments: Screen Shot 2013-06-06 at 10.21.53.png
>
>
> When the following camel websocket secure route is deployed on karaf, we get this error

> {code}
> Caused by: java.io.IOException: Invalid keystore format
> 	at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:633)[:1.6.0_45]
> 	at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)[:1.6.0_45]
> 	at java.security.KeyStore.load(KeyStore.java:1185)[:1.6.0_45]
> 	at org.apache.camel.util.jsse.KeyStoreParameters.createKeyStore(KeyStoreParameters.java:175)[130:org.apache.camel.camel-core:2.10.0.redhat-60024]
> 	at org.apache.camel.util.jsse.KeyManagersParameters.createKeyManagers(KeyManagersParameters.java:108)[130:org.apache.camel.camel-core:2.10.0.redhat-60024]
> 	at org.apache.camel.util.jsse.SSLContextParameters.createSSLContext(SSLContextParameters.java:236)[130:org.apache.camel.camel-core:2.10.0.redhat-60024]
> {code}
> {code}
> <beans xmlns="http://www.springframework.org/schema/beans"
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xmlns:camel="http://camel.apache.org/schema/spring"
>        xsi:schemaLocation="
>        http://www.springframework.org/schema/beans
>           http://www.springframework.org/schema/beans/spring-beans.xsd
>        http://camel.apache.org/schema/spring
>           http://camel.apache.org/schema/spring/camel-spring.xsd">
>     <bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">
>         <property name="brokerURL" value="tcp://localhost:61616"/>
>     </bean>
>   <camel:sslContextParameters
>       id="sslContextParameters">
>     <camel:keyManagers
>         keyPassword="changeit">
>       <camel:keyStore
>           resource="jsse/websocket.jks"
>           password="changeit"/>
>     </camel:keyManagers>
>     <camel:trustManagers>
>       <camel:keyStore
>           resource="jsse/websocket.jks"
>           password="changeit"/>
>     </camel:trustManagers>
>   </camel:sslContextParameters>
>   <camelContext xmlns="http://camel.apache.org/schema/spring">
>     <packageScan>
>       <package>com.fusesource.examples.camel.websocket.secure</package>
>     </packageScan>
>   </camelContext>
> ...
>            from("activemq:topic:newsTopic").routeId("fromJMStoWebSocketSecureNews")
>              .log(LoggingLevel.DEBUG, ">> News info received : ${body}")
>              .delay(5000)
>              .to("websocket://0.0.0.0:8443/newsTopic?sendToAll=true" +
>                      "&sslContextParametersRef=#sslContextParameters&staticResources=classpath:webapp");
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message