Hi,
after i ordered and installed my first certificate for my website i recognized that not all clients can establish connections to my server. For example a few java clients have none of those certificates bundled (Oracle jdk 1.8 51).
This can lead to this exception:
1 2 3 4 5 |
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 |
After a quick search i found a convenient solution. There is a java source class spread over the web that can download and install certificates from any website and install it to your java folder.
In the future i expect many people to use my server so i packed this freely floating class inside a maven project for even easier execution 😉 I am propably the thousandth who had done this but i love maven. The project is hosted on github and anyone can clone and run it.
https://github.com/sd-f/install-certificate
Hint: run as user with higher privileges (sudo on linux and in a Administrator cmd on windows).
More information is available in the readme and pom-description inside the project.
Hope this helps,
cheers luke
more info