Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5BD9319F34 for ; Thu, 28 Apr 2016 13:45:13 +0000 (UTC) Received: (qmail 53725 invoked by uid 500); 28 Apr 2016 13:45:13 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 53693 invoked by uid 500); 28 Apr 2016 13:45:13 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 53680 invoked by uid 99); 28 Apr 2016 13:45:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Apr 2016 13:45:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 013712C1F61 for ; Thu, 28 Apr 2016 13:45:13 +0000 (UTC) Date: Thu, 28 Apr 2016 13:45:13 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-6433) Invalid KeyStore format error is generated using camel websocket secure on osgi platform MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15262146#comment-15262146 ] Claus Ibsen commented on CAMEL-6433: ------------------------------------ Also I think we should let the ClassResolver load the resource first instead of trying the TCCL and whatnot known tricks. > 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.17.1, 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} > 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"> > > > > id="sslContextParameters"> > keyPassword="changeit"> > resource="jsse/websocket.jks" > password="changeit"/> > > > resource="jsse/websocket.jks" > password="changeit"/> > > > > > com.fusesource.examples.camel.websocket.secure > > > ... > 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)