Shankh is London based consultancy started on 2011 to provide consultancy services primarily in Java. With several successful Java projects under our belt, we started exploring mobile based services towards end of 2012 which led to our first android/ios/windows-phone app which is staged for release in 2013

Some Random quotes


Innovation distinguishes between a leader and a follower. -Steve Jobs

It is not that i am smarter than others, i just persist with problems longer

How to avoid Java SSL certificate Error

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

This normally happens when we are using the user-generated-certificates instead of the certificate generated by Certification Authorities. So to avoid this download and run this little java program
http://blogs.sun.com/andreas/resource/InstallCert.java

java InstallCert myserver.xyz.com .  Here myserver.xyz.com is your server hostname

It downloads the certificate and asks whether to add it to the keystore

Enter certificate to add to trusted keystore or ‘q’ to quit: [1]

press Enter

this will generate the file jssecacerts in the current directory . Copy it to $JAVA_HOME/jre/lib/security . Hooray¬† … no more exception

For detailed information see the blog of andreas http://blogs.sun.com/andreas/entry/no_more_unable_to_find

Related Links
http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/keytool.html

Share

Leave a Reply