Hi Thomas,
In your client class, you seem to use the truststore file in the place of
keystore one.
"ConsumerUI.java":
[…]
try {
TLSClientParameters tlsParams = new
TLSClientParameters();
tlsParams.setSecureSocketProtocol("SSL");
tlsParams.setDisableCNCheck(true);
KeyStore keyStore = KeyStore.getInstance("JKS");
String trustpass = "password";
URL url =
bc.getBundle().getEntry("keystores/truststore.jks"); --> this must be the
keystore's path yere right, so "wibble.jks" in occurrence !
System.out.println(url);
if(url != null) {
InputStream input = url.openStream();
keyStore.load(input, trustpass.toCharArray());
}
}
Hope this helps
Tung
Le 19 mai 2012 à 09:56, Thomas Pischulski a écrit :
> Hey Colm,
>
> I was off a while but now I made a, hopefully minimal enough, sample
> project for you. You get grab it here:
>
> http://www1.inf.tu-dresden.de/~s9494545/ssl_minimal_example.zip
>
> It contains 2 bundles, webservice and webservice-consumer. Both have
> methods like configureSSL() to do the SSL stuff that won't work. I
> also used the dosgi single-bundle distribution that you can get from
> here:
> http://search.maven.org/remotecontent?filepath=org/apache/cxf/dosgi/cxf-dosgi-ri-singlebundle-distribution/1.3/cxf-dosgi-ri-singlebundle-distribution-1.3.jar
>
> Make sure you're running both of them with an osgi run-configuration
> that runs all the required bundles (webservice, webservice-consumer,
> dosgi-single-bundle-distribution and all other required).
>
> Once the service is started and you try to invoke it you should get
> this "Unrecognized SSL message, plaintext connection?" SSL Exception
> where I feel unsure how to tackle or debug the problem. I found out
> that if you add "-Djavax.net.debug=all" to your run-configurations
> arguments you get a more detailled output about all the SSL-stuff
> happening.
>
> Thanks in advance, I'm really not sure how to solve it at the moment.
>
> Cheers,
>
> Thomas
>
> On 5/14/2012 2:00 PM, Colm O hEigeartaigh wrote:
>> Could you supply a sample project that shows the problem?
>>
>> Colm.
>>
>> On Mon, May 14, 2012 at 12:58 PM, Thomas Pischulski
>> <[email protected]> wrote:
>>> Bump. Anyone? Here's a more detailled output log with some
>>> additional SSL information during the webservice invocation.
>>>
>>> Cheers,
>>>
>>> Thomas
>>
>>
>>