cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (Commented) (JIRA)" <>
Subject [jira] [Commented] (CXF-4233) cxf should improve ssl support
Date Wed, 11 Apr 2012 13:01:17 GMT


Freeman Fang commented on CXF-4233:


I just run the wsdl_first_https example in 2.5.2 kit and it works for me, I'm quite sure the
https works in CXF.

And you mentioned before your configuration works when there's no clientAuthentication but
doesn't if enable clientAuthentication, so most likely you miss some configuration on your
client side, as the client side configuration should be different in these two cases.

Take a close look at the README.txt of wsdl_first_https example, this part

The client is configured to provide its certificate "CN=Wibble" and
chain stored in the Java KeyStore "certs/wibble.jks" to the server. The
server authenticates the client's certificate using its trust store
"certs/truststore.jks", which holds the Certificate Authorities'

Likewise the client authenticates the server's certificate "CN=Cherry"
and chain against the same trust store.  Note also the usage of the
cipherSuitesFilter configuration in the configuration files,
where each party imposes different ciphersuites contraints, so that the
ciphersuite eventually negotiated during the TLS handshake is acceptable
to both sides. 

The key part is the client side also need authenticates the server's certificate "CN=Cherry",
it need client side configure the correct trust store which can validate the server's certificate.

You may need take a close look at the wsdl_first_https/bin/ which demonstrate how
to generate the keystore, truststore, and also show the relationship between them. It should
be a very good start for you if you're not familiar with those yet.

Finally, if you still have issues, please post your question on cxf user mailling list,  as
there is the right place to discuss this kind of question. Maybe elaborate your configuration
in both cases there, also the way how you generate the keystore/truststore which is very important.

> cxf should improve ssl support
> ------------------------------
>                 Key: CXF-4233
>                 URL:
>             Project: CXF
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.5.2
>         Environment: windowx or linux with jdk1.6.22 or more
>            Reporter: jerryscott2012
>            Assignee: Freeman Fang
>              Labels: security
>             Fix For: 2.6
>   Original Estimate: 168h
>  Remaining Estimate: 168h
> in my project, I publish my service under ssl like this :https://localhost:9090/CardWebServiceProvider
(in server side)
> and set ClientAuthentication with true (ClientAuthentication ca = new ClientAuthentication();ca.setRequired(true);
> then I start my client side to access the service, here comes the exception
> Caused by: SocketException invoking https://localhost:9090/CardWebServiceProvider:
Software caused connection abort: recv failed
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> 	at java.lang.reflect.Constructor.newInstance(
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(
> 	at org.apache.cxf.transport.AbstractConduit.close(
> 	at org.apache.cxf.transport.http.HTTPConduit.close(
> 	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(
> 	... 36 more
> Caused by: Software caused connection abort: recv failed
> 	at Method)
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(
> 	at
> 	at
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(
> 	... 39 more
> all my environment established resort to
(what's more, I did import the truststore and keystore file into my browser and my server
root store keep in touch with them.)
> so could cxf team provide better solution to resolve it(or give some complete example
to introduce it) as once I set ClientAuthentication with true it threw the exception as above
or else it didn't. and surely I run the client problem with (seem that
the server verification close but client still wait the response)

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message