• Post Reply Bookmark Topic Watch Topic
  • New Topic

Https and HostnameVerifier Help  RSS feed

Martin Swift
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried to find the answer to my problem in earlier post on Javaranch without any luck.
I need to communicate with a server that has SSL support. I have written a small application for this. In this application I have implemented the HostnameVerifier interface, but the class implementing the interface never gets called. According to the API doc the verify method in the implementation of the interface shall be called if the URL's hostname and the server's identification hostname mismatch. Is this the same thing as if to say that this method is called when a non-trusted cert is recovered or a cert that cannot be found in the �cacerts� file ? Please help me figure out how this works!
BTW, The application works on some https sites, like verisign. So I do not know if it is something wrong with my app or if I have misunderstood how to use https. Probably the latter :-(

Thank you !!!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!