File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception after changing a port

 
Kiran Kumar
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Kiran Kumar
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry, that was "I have an application .. "

Cheers,
Kiran
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)?
 
Kiran Kumar
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The stacktrace of the exception is



Thanks,
Kiran
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a bunch!

Kiran
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic