aspose file tools*
The moose likes Web Services and the fly likes Certificate not trusted - Unable to set AxisProperties Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Certificate not trusted - Unable to set AxisProperties" Watch "Certificate not trusted - Unable to set AxisProperties" New topic
Author

Certificate not trusted - Unable to set AxisProperties

krishna ganapa
Greenhorn

Joined: Dec 07, 2007
Posts: 2
Hi,
I am getting Certificate not trusted exception

Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted
at com.ibm.jsse2.bx.a(Unknown Source)
at com.ibm.jsse2.by.a(Unknown Source)
at com.ibm.jsse2.by.a(Unknown Source)
at com.ibm.jsse2.w.a(Unknown Source)
at com.ibm.jsse2.w.a(Unknown Source)
at com.ibm.jsse2.v.a(Unknown Source)
at com.ibm.jsse2.by.a(Unknown Source)
at com.ibm.jsse2.by.l(Unknown Source)
at com.ibm.jsse2.by.startHandshake(Unknown Source)
at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:228)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:157)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:114)

When i use self signed certificate from provide it works. To avoid adding provider's self signed certificate to my keystore i have used the following

AxisProperties.setProperty("org.apache.axis.components.net.SecureSocketFactory","org.apache.axis.components.net.IBMFakeTrustSocketFactory");

I am using IBM RAD and have compiles Axis with IBM JDK.

The control is not going to IBMDakeTrustSocketFactory at all. Could any one advise?

Thanks a lot,
--Kiran
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Certificate not trusted - Unable to set AxisProperties
 
Similar Threads
Web Service with SSL Certificate exception
Publishing through RAD throws javax.net.ssl.SSLHandshakeException
Certificate Exception after signing the applet
No Trusted keystore found
Java client calling ssl web service on WAS7