Tampilkan postingan dengan label Java Security Tutorial. Tampilkan semua postingan
Tampilkan postingan dengan label Java Security Tutorial. Tampilkan semua postingan

Sabtu, 24 Desember 2016

If you are working in Java web or enterprise application which connect to any other web server using HTTPs you might have seen the "javax.net.ssl.SSLHandshakeException". This is one of the particular case of that error. If you know how SSL and HTTPS works that when a Java client connect to a Java server the SSL handshake happens. In this steps server return certificates to confirm it's identity, which then client validates against the root certificate he has in its truststore. If Server return a certificate which cannot be validated against the certificates a browser or Java client holds in its truststore then it throws the "sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target".
Read more �

Senin, 24 Oktober 2016

Dealing with SSL issues in Java web application is no fun, especially when you have no debug logs and all you see is an ugly �Page Cannot be displayed� error message in your browser. Thankfully you can easily enable SSL to debug on your Application to start seeing verbose logs that will clearly show what happens during the SSL handshake process. You can enable SSL debugging logs in your Application Server JVM config by adding the following JVM command line parameter and restart the Application Server:

-Djavax.net.debug=all
Read more �