[JRE] How to extend the list of trusted CAs in the Java Runtime Environment
or: How to resolve 'SunCertPathBuilderException: unable to find valid certification path to requested target'
Above exception is thrown when you try to open a HTTPS connection to a website whose certificate is not signed by a trusted certificate authority (CA).
What you should do:
- Download/Export the CA certificate for the desired website (not the certificate of the website itself).
- Open up an administrator shell.
- Type the following: