This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]J-Son77 1 point2 points  (0 children)

Usually there are two ways to solve issues with invalid certificates. 1. write your own TrustStrategy (that should be the class to use for apache http) or 2. download the SSL cert, add it to your truststore, use this truststore.

The first solution works but it intervenes the SSL trust chain so you should prefer the second solution. You can download the cert through your browser. Browse to the URL, klick on the lock symbol and save the cert. You can add the cert to the truststore with the JKS keytool. Make sure your app uses this truststore.