You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by smallarv <sm...@rediffmail.com> on 2013/09/03 14:48:14 UTC

Two way ssl using cxf-client in weblogic9.2

Hi,
I have deployed my apache-cxf client in weblogic-9.2, My webservices are
deployed in another server with two way ssl enabled.
now i am creating https connection with server using weblogic server's(on
which client is deployed) certificate as client identity.

i have used below conduit configuration.

<http-conf:conduit name="*.http-conduit" >
	<http-conf:tlsClientParameters
useHttpsURLConnectionDefaultSslSocketFactory="true"/>
	</http-conf:conduit>

now when i am connecting to server it is giving me handshake_failure error.


 Caused by: javax.net.ssl.SSLException: Connection has been shutdown:
javax.net.ssl.SSLHandshakeException: Received fatal
 alert: handshake_failure
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1173)
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1185)
        at
com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:43)
        at
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
        at java.io.FilterOutputStream.flush(FilterOutputStream.java:123)
        at
weblogic.net.http.HttpURLConnection.writeRequests(HttpURLConnection.java:152)
        at
weblogic.net.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:236)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1383
)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1324)
        at
org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:42)
        at
org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1403)
        ... 27 more
Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert:
handshake_failure
        at
com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150)
        at
com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:117)
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1584)
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:866)
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1030)
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1057)
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.getSession(SSLSocketImpl.java:1757)
        at weblogic.net.http.HttpsClient.getSSLSession(HttpsClient.java:537)
        at
weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:257)
        at
weblogic.net.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:235)
        ... 32 more


but when i am setting ssl properties in weblogic startup as below, it works
fine

-Djavax.net.ssl.keyStore=c:\.......
-Djavax.net.ssl.trustStore=c:\....
-Djavax.net.ssl.keyStorePassword=password
-Djavax.net.ssl.trustStorePassword=password

please suggest any way to use weblogic configured keystore and certificates.

thanks




--
View this message in context: http://cxf.547215.n5.nabble.com/Two-way-ssl-using-cxf-client-in-weblogic9-2-tp5733448.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Two way ssl using cxf-client in weblogic9.2

Posted by smallarv <sm...@rediffmail.com>.
Somebody please reply.........

Any suggestions would be appreciable.



--
View this message in context: http://cxf.547215.n5.nabble.com/Two-way-ssl-using-cxf-client-in-weblogic9-2-tp5733448p5733852.html
Sent from the cxf-user mailing list archive at Nabble.com.