cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wolfgang Nagele (JIRA)" <>
Subject [jira] Commented: (CXF-2403) Use of client certificates via http conduit configuration broken
Date Thu, 27 Aug 2009 16:36:59 GMT


Wolfgang Nagele commented on CXF-2403:

Found the problem.

While looking at your implementation and the diff to mine it became clear that i am creating
my client based on a WSDL on the SSL enabled server. In your example you use a local copy
of the WSDL. With this figured out i tried mine with a local WSDL file and it worked just
fine. Thanks for the help!

CXF-2380 is already dealing with the same issue and explaining on how to work around this
(please mark this issue as a duplicate and close it).

> Use of client certificates via http conduit configuration broken
> ----------------------------------------------------------------
>                 Key: CXF-2403
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: Configuration
>            Reporter: Wolfgang Nagele
>         Attachments: client-keystore, client-truststore, client.crt, client.key, client.p12,
server-keystore, server-truststore, server.crt, server.key, server.p12,
> To use standard SSL client certificates for authentication the following configuration
should work:
> <http:conduit name="*.http-conduit">
>   <http:tlsClientParameters>
>     <sec:keyManagers keyPassword="password">
>       <sec:keyStore type="JKS" password="password" file="keystore" />
>     </sec:keyManagers>
>     <sec:trustManagers>
>       <sec:keyStore type="JKS" password="password" file="truststore" />
>     </sec:trustManagers>
>   </http:tlsClientParameters>
> </http:conduit>
> In this configuration we would have the public certificate of the server we want to connect
to in the truststore and the private key and certificate in the keystore.
> With the current CXF implementation this results in the following exception:
> unable to find valid certification
path to requested target
> 	at
> 	at [na:1.6.0_13]
> 	at [na:1.6.0_13]
> 	... 39 common frames omitted
> Once we additionally define the following properties it works:
> *
> *
> *
> *
> This however results in very ugly setups where we have to define the same data twice.
Also we miss out on CXF's option of defining specific keystores and truststores per webservice.
> For further information also see:

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message