You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Rafal Janik <ra...@softwaremind.pl> on 2011/12/09 14:25:11 UTC
cxf-provider with SSL encryption
Hi
I'm a little bit confused with configuring cxf-provider with SSL encryption.
In my servicemix there is a very simple proxy :
<cxfbc:consumer wsdl="classpath:MyService.wsdl"
targetEndpoint="HealthIndicatorImplPort"
targetService="mynamespace:MyService"
targetInterface="mynamespace:HealthIndicatorImplPort"
endpoint="HealthIndicatorImplPortEndpoint"
service="mynamespace:MyService"
locationURI="http://0.0.0.0:8190/robust/MyService/">
</cxfbc:consumer>
<cxfbc:provider wsdl="classpath:MyService.wsdl"
locationURI="https://my.service.com/MyService"
interfaceName="mynamespace:HealthIndicatorImplPort2"
service="mynamespace:MyService"
endpoint="HealthIndicatorImplPort">
</cxfbc:provider>
The ws mentioned in cxf:bcprovider has changed and now it just support
SSL encryption.
The cert was imported into created jks file.
I want to leave the cxf-consumer without ssl and accept the cert just
for provider - I don't want the smx client see any changes in API.
Where and how I should configure the provider? With busCfg or in
cxf.xml? And how? I've read many examples, blogs documentations but it
isn't working for me - probably I'm doing something wrong or I don't
understand how it should work...
Please help me :)
Thanks in advance.
regards
rafal
Re: cxf-provider with SSL encryption
Posted by Freeman Fang <ff...@fusesource.com>.
Hi,
We have a testcase which demonstrate how to configure cxf bc provider
with SSL, take a look at[1], also the configuration file used for this
testcase[2],[3]
[1]https://svn.apache.org/repos/asf/servicemix/components/trunk/bindings/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/ws/security/CxfBcProviderHttpsTest.java
[2]https://svn.apache.org/repos/asf/servicemix/components/trunk/bindings/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/ws/security/provider.xml
[3]https://svn.apache.org/repos/asf/servicemix/components/trunk/bindings/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/ws/security/provider/WibbleClient.xml
Freeman
On 2011-12-9, at 下午9:25, Rafal Janik wrote:
> Hi
>
>
>
> I'm a little bit confused with configuring cxf-provider with SSL
> encryption.
> In my servicemix there is a very simple proxy :
>
> <cxfbc:consumer wsdl="classpath:MyService.wsdl"
> targetEndpoint="HealthIndicatorImplPort"
> targetService="mynamespace:MyService"
>
> targetInterface="mynamespace:HealthIndicatorImplPort"
> endpoint="HealthIndicatorImplPortEndpoint"
> service="mynamespace:MyService"
> locationURI="http://0.0.0.0:8190/robust/
> MyService/">
>
>
> </cxfbc:consumer>
>
>
> <cxfbc:provider wsdl="classpath:MyService.wsdl"
> locationURI="https://my.service.com/MyService"
>
> interfaceName="mynamespace:HealthIndicatorImplPort2"
> service="mynamespace:MyService"
> endpoint="HealthIndicatorImplPort">
>
> </cxfbc:provider>
>
> The ws mentioned in cxf:bcprovider has changed and now it just
> support SSL encryption.
> The cert was imported into created jks file.
>
> I want to leave the cxf-consumer without ssl and accept the cert
> just for provider - I don't want the smx client see any changes in
> API.
>
> Where and how I should configure the provider? With busCfg or in
> cxf.xml? And how? I've read many examples, blogs documentations but
> it isn't working for me - probably I'm doing something wrong or I
> don't understand how it should work...
>
>
> Please help me :)
>
> Thanks in advance.
>
>
> regards
>
>
> rafal
>
>
>
>
>
>
>
>
>
>
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Re: cxf-provider with SSL encryption
Posted by Rafal Janik <ra...@softwaremind.pl>.
sorry for the previous mail, wrong topic,