Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SSLHandshakeException: could not find trusted certificate  RSS feed

 
igwe kalu kalu ogba
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I am trying to access a web service on a remote server and I get this exception on some machines. I was able to download the certificate for the site on which the web service is being hosted. Is there a way I can set it as a system property or something, so that all requests from my program can find it? Thanks. The certificate is a .cer file.

Exception is

javax.net.SSLHandshakeException: could not find trusted certificate
 
Dorj Galaa
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try use your own HostNameVerifier
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!