Jeszcze raz, ponury problem z SSLPeerUnverified, ale nie używam certyfikatów z podpisem własnym. Próbuję połączyć się z hostem za pomocą protokołu HTTPS. Ten host ma poprawny certyfikat, ani Firefox, ani HttpsUrlConnection nie mają z nim żadnych problemów. Jednak próbując połączyć się przy użyciu HttpClient, otrzymuję wyjątek budzący lęk.SSLPeerUnverifiedException: peer not authenticated
Jakieś wskazówki? Albo wskazówka gdzie się bliżej przyjrzeć?
Dzięki!
Edit: Debug wyjście
główne, obsługa wyjątków:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
główny, IOException w metodę getSession():
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
2 dni cierpienia zakończony tą odpowiedź. Weź swój głos na dobrego człowieka. –