Re: 'hostname in certificate didn't match' with Apache HTTP client

2011-01-31 Thread Tal Liron
Thank you! It seems this SSLUtilities class uses com.sun classes, and might not be very portable... Anyway, I think I've come to realize that in my specific case the fault was with Yahoo, not me. The HTTP client is right to reject Yahoo's response in this case. I was experimenting with some t

Re: 'hostname in certificate didn't match' with Apache HTTP client

2011-01-31 Thread Romain
You can look at this : http://en.wikibooks.org/wiki/WebObjects/Web_Services/How_to_Trust_Any_SSL_Certificate SSLUtilities.trustAllHostnames() to turn off the default hostname verification on HTTPS connection;

'hostname in certificate didn't match' with Apache HTTP client

2011-01-29 Thread Tal Liron
I'm getting a lot of these exceptions when accessing perfectly happy internet sites, such as Yahoo! and LiveJournal. It seems that various people on the net have problems with similar problems with Apache HTTP Client on Android, but in this case I'm using Restlet 2.0 JSE. Any ideas or suggestio