0

I am using apache cxf for calling a web service from a weblogic server.The web service is SSL with mutual authentication based authorization.

There were some issues with the weblogic version 10.3 supporting the jdk version which i managed to resolve.

But now i am getting another error and not able to get much help on the internet

Caused by: org.apache.cxf.transport.http.UntrustedURLConnectionIOException: RequireClientCertificate is set, but no local certificates were negotiated.  Is
the server set to ask for client authorization?
        at org.apache.cxf.ws.security.policy.interceptors.HttpsTokenInterceptorProvider$HttpsTokenOutInterceptor$1.establishTrust(HttpsTokenInterceptorProvider.java:117)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.makeTrustDecision(HTTPConduit.java:1680)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1264)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1234)
        at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.onFirstWrite(URLConnectionHTTPConduit.java:195)
        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:1291)
        ... 43 more

I am using the configuration given here : http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html

4

1 回答 1

0

在这些情况下,我们也遇到了这个错误:

  • 密钥库的错误路径
  • 引用密钥库中不存在的别名
  • 错误的证书(测试环境中使用的 DEV 环境的证书)

因此,我建议仔细检查用于对 ws 进行身份验证的私有证书的整个设置链。

于 2016-03-09T07:35:50.850 回答