petals-bc-soap 3.1 keyStore and trustStore

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

petals-bc-soap 3.1 keyStore and trustStore

rnaudin-3
Hi,
I need to call a web service under ssl and https, so I need to put the system properties javax.net.ssl.*.
I try to do this using -D command line argument (-Djavax.net.ssl...).
But I got this error when I try to call my endpoint :
Code:

FAULT : fcns:0Default SSL context init failed: exception decrypting data - java.security.InvalidKeyException: Illegal key size    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
   at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
   at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
   at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
   at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
   at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
   at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
   at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
   at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
   at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
   at org.ow2.petals.binding.soap.listener.outgoing.WSCaller.process(WSCaller.java:157)
   at org.ow2.petals.binding.soap.listener.outgoing.JBIListener.dispatch(JBIListener.java:149)
   at org.ow2.petals.binding.soap.listener.outgoing.JBIListener.onJBIMessage(JBIListener.java:115)
   at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.processInOutAsProvider(MessageExchangeProcessor.java:524)
   at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:421)
   at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.process(MessageExchangeProcessor.java:308)
   at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.run(MessageExchangeProcessor.java:145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
   at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.SocketException: Default SSL context init failed: exception decrypting data - java.security.InvalidKeyException: Illegal key size
   at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:176)
   at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:81)
   at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:126)
   at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
   at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
   at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
   at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
   at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
   at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
   at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520)
   at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191)
   ... 18 more
]]>


I try to call the service using a Java hard coded client (using System.setProperty(..)) and it works.

Thanks in advance.




Information Processing Competence Center (IPCC)
EADS Defence and Security Systems
http://weblab-project.org




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=270#270

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: petals-bc-soap 3.1 keyStore and trustStore

rnaudin-3
I have a patch to apply for SSL, I need to validate it.
I hope to do it soon.




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=271#271

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: petals-bc-soap 3.1 keyStore and trustStore

rnaudin-3
In reply to this post by rnaudin-3
Is it on the svn version ?




Information Processing Competence Center (IPCC)
EADS Defence and Security Systems
http://weblab-project.org




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=272#272

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: petals-bc-soap 3.1 keyStore and trustStore

rnaudin-3
In reply to this post by rnaudin-3
No it is not available




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=273#273

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users