Accept Self signed certificate in JAVA.
Have you ever faced problem with SSLHandshakeException ?
This is because you are trying to use a website which uses an non-standard https certificate which are not registered on JRE. If you want a self signed certificate web request to be accepted, here is the code.
The below procedure applicable for JRE 6 -