So, i have tried everything i can possibly think of and still i'm not able to establish a connection with a website. So here is a brief description of the problem with code,errors,etc. I have added my cert by using the popular InstallCert.java i found online. It created a file called jssecacerts. this is commandline response from program and everthing has seemed to work great!