Keytool: Import Certificate – Java Certs

If you use a self-signed SSL certificate or a certificate that has been issued by unknown CA (certificate authority), Java client will raise an exception: SunCertPathBuilderException: unable to find valid certification path to requested target To resolve this issue the self-signed certificate or the CA certificate should be imported into Java keystore using a keytool […]