Understand and fix Java javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target. Using basic knowledge about certificates and java keytool. Demonstration via the following three steps:
1. Working application: why?
2. Break it
3. Fix it
![](https://s2.save4k.ru/pic/iivPZw-3nNI/maxresdefault.jpg)