aspose file tools*
The moose likes Web Services and the fly likes Exception after changing a port Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Exception after changing a port" Watch "Exception after changing a port" New topic
Author

Exception after changing a port

Kiran Kumar
Ranch Hand

Joined: Jan 06, 2003
Posts: 91
Hi,

I am an application using a web service. Previously it was running on a nonSSL port. I changed the server to run on a SSL port. But, I now get the following exception on client-side.

javax.net.ssl.SSLHandshakeException

Any help would be appreciated.
Thanks,
Kiran


------------<br />SCJP
Kiran Kumar
Ranch Hand

Joined: Jan 06, 2003
Posts: 91
sorry, that was "I have an application .. "

Cheers,
Kiran
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Can you provide any more details about the exception (like a full stack trace) or the SSL-configuration (e.g. whether a client-side certificate should be used)?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Kiran Kumar
Ranch Hand

Joined: Jan 06, 2003
Posts: 91
The stacktrace of the exception is



Thanks,
Kiran
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Ok. I'm quite confident that the problem is that your web server is using a "test" SSL certificate that is self-signed and not signed by a "trusted" certificate authority such as Verisign. If this is the case, there's two ways to solve it:
1) Buy a real certificate from Verisign
2) Import the server's self-signed certificate into your client's trusted certificate store in order to make it trusted by your client code. I'd recommend turning to our Security forum for details on how to do these.
Kiran Kumar
Ranch Hand

Joined: Jan 06, 2003
Posts: 91
Thanks a bunch!

Kiran
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception after changing a port