Not able to set cxf.xml using SpringBusFactory

I need to be able to set different security information for various webservices clients in my application.

cxf version: 3.1.6
org.springframework.spring-context version 4.3.10.RELEASE

Using the following configuration lets me use only one cxf configuration file (but it works)

private static SetupSecurity busFactory;
private static DemoPortType demoPort;

public void setupDemoPortType(URL endpoint_URL) {

    SpringBusFactory bf = new SpringBusFactory();
    Bus bus = bf.createBus("C://Git//Utilities//ServiceplatformenUtil//src//main//resources//cxf-demo.xml");
    demoPort = new DemoService().getDemoPort();
    ((BindingProvider) demoPort).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
            endpoint_URL.toExternalForm());
}

public String callWithInvocationContext(String message) {
    final CallDemoServiceRequestType request = invocationContextRequestFactory.getDemoServiceRequestType(message);
    return callDemoService(request);
}

private String callDemoService(CallDemoServiceRequestType request) {
    try {
        final CallDemoServiceResponseType response = demoPort.callDemoService(request);
        return response.getResponseString();
    } catch (Exception e) {
        System.out.println(e);
        return null;
    }
}

This “should” let me use multiple cxf configuration files, but it does not work

private static SetupSecurity busFactory;
private static DemoPortType demoPort;

public void setupDemoPortType(URL endpoint_URL) {

    SpringBusFactory bf = new SpringBusFactory();
    Bus bus = bf.createBus("C://Git//Utilities//ServiceplatformenUtil//src//main//resources//cxf-demo.xml");

    JaxWsProxyFactoryBean cf = new JaxWsProxyFactoryBean();
    cf.setAddress(endpoint_URL.toExternalForm());
    cf.setServiceClass(DemoService.class);
    cf.setBus(bus);
    demoPort = cf.create(DemoPortType.class);
}

public String callWithInvocationContext(String message) {
    final CallDemoServiceRequestType request = invocationContextRequestFactory.getDemoServiceRequestType(message);
    return callDemoService(request);
}

private String callDemoService(CallDemoServiceRequestType request) {
    try {
        final CallDemoServiceResponseType response = demoPort.callDemoService(request);
        return response.getResponseString();
    } catch (Exception e) {
        System.out.println(e);
        return null;
    }
}

This causes following error

jul. 27, 2017 11:40:50 AM org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging
WARNING: Interceptor for {USED URL}DemoPortTypeService#{USED URL}callDemoService has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
    at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
    at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:423)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:324)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:277)
    at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
    at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139)
    at com.sun.proxy.$Proxy55.callDemoService(Unknown Source)
    at dk.dataproces.serviceplatformen.DemoClient.callDemoService(DemoClient.java:62)
    at dk.dataproces.serviceplatformen.DemoClient.callWithInvocationContext(DemoClient.java:57)
    at dk.dataproces.serviceplatformen.Main.main(Main.java:15)
Caused by: javax.net.ssl.SSLHandshakeException: SSLHandshakeException invoking USED URL: Received fatal alert: bad_certificate
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1377)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1361)
    at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:56)
    at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:216)
    at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
    at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:651)
    at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
    ... 11 more
Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
    at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1125)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1316)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1291)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)
    at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.setupWrappedStream(URLConnectionHTTPConduit.java:236)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1320)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1280)
    at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.onFirstWrite(URLConnectionHTTPConduit.java:267)
    at org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:47)
    at org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1333)
    ... 16 more

javax.xml.ws.WebServiceException: Could not send Message.

Help is very much appreciated!